Document 2
Document 2
a:hover {
.page1 h3 { color: #fe8c21;
margin-bottom: 21px;
} }
p{ .alright {
margin-bottom: 18px; padding-top: 23px;
} padding-bottom: 3px;
}
img {
max-width: 100%; a.btn {
} font-size: 14px;
display: inline-block;
address { line-height: 18px;
font-style: normal; color: #e85441;
} padding-right: 13px;
ul { background: url(../images/link_arrow.png)
padding: 0; right 4px no-repeat;
margin: 0; }
text-align: right;
a.btn:hover { }
color: #fff; .center {
} text-align: center;
}
/*preclass*/ .wrapper, .extra_wrapper {
overflow: hidden;
.mb0 { }
margin-bottom: 0px !important; .clear {
} float: none !important;
.m0 { clear: both;
margin: 0 !important; }
}
/*header*/
.mb1 {
margin-bottom: 25px !important; header {
} display: block;
position: relative;
.ind1 { z-index: 999;
margin-top: 11px; margin-bottom: 46px;
} }
.pad0 { #search {
padding: 0 !important; float: right;
} width: 140px;
position: relative;
overflow: hidden;
.pt0 { margin-top: 15px;
padding-top: 0; }
}
#search input {
.img_inner { background-color: #fcab1c;
max-width: 100%; border: 1px solid #ff5d32;
-moz-box-sizing: border-box; float: none;
-webkit-box-sizing: border-box; height: 25px;
-o-box-sizing: border-box; padding: 4px 50px 3px 10px;
box-sizing: border-box; color: #000;
margin-bottom: 19px; font: 12px/18px Arial, Helvetica, sans-serif;
position: relative; width: 100%;
} -moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
.fleft { -o-box-sizing: border-box;
float: left; box-sizing: border-box;
margin-right: 18px; }
margin-top: 1px;
margin-bottom: 0px; #search a {
} background:
url(../images/search_icon.png) 0 2px no-repeat;
.fright { width: 43px;
float: right !important; height: 25px;
} display: block;
position: absolute;
.upp { right: 0;
text-transform: uppercase; top: 0;
} cursor: pointer;
}
.alright {
#search a:hover {
opacity: 0.5; .block1 {
} border-bottom: 1px solid #e85441;
text-align: center;
/*Content*/ font-weight: bolder;
font-size: 14px;
.content { padding-bottom: 7px;
padding-bottom: 44px; background-color: #423d60;
} }
.p1 a { .block1+.block1+.block1 {
color: #ff4a4a; margin-top: 49px;
} }
.p2 a { .blue {
color: #ee0f0f; border-color: #ff7d01;
} }
.pt1 { address dt {
padding-top: 22px; color: #000;
} }
.block2 {
width: 265px; address dd span {
float: left; min-width: 85px;
display: inline-block;
} text-align: left;
}
.block2 +.block2 {
margin-left: 38px; .socials {
} overflow: hidden;
float: right;
.img_inner.i1 { padding-top: 16px;
margin-top: -2px; }
margin-bottom: 22px;
} .socials a {
float: left;
/****Map***/ display: block;
background: url(../images/socials.png) 0 0
.map { no-repeat;
padding-top: 0px; width: 23px;
margin-top: -2px; height: 23px;
} }
} .socials a+a+a {
.map figure { margin-left: 5px;
background-position: -57px 0;
width: 100%; }
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box; .socials a+a+a+a {
-o-box-sizing: border-box; background-position: right 0;
box-sizing: border-box; }
display: block;
margin-bottom: 29px; .socials a:hover {
opacity: 0.5;
} }
.map figure iframe {
width: 100%; /************Footer***********/
height: 347px;
max-width: 100%; footer {
display: block; .grid_7,
padding: 0px 0; .grid_8,
font-size: 12px; .grid_9,
} .grid_10,
.grid_11,
.grid_12 {
display: inline;
.copy { float: left;
padding-top: 18px; margin-left: 10px;
padding-bottom: 40px; margin-right: 10px;
border-top: 1px solid #fe8c21; }
} .push_1, .pull_1,
.push_2, .pull_2,
.push_3, .pull_3,
.push_4, .pull_4,
grid.css .push_5, .pull_5,
.push_6, .pull_6,
/* .push_7, .pull_7,
960 Grid System ~ Core CSS. .push_8, .pull_8,
Learn more ~ http://960.gs/ .push_9, .pull_9,
.push_10, .pull_10,
Licensed under GPL and MIT. .push_11, .pull_11 {
*/ position: relative;
}
/*
Forces backgrounds to span full width, /* `Grid >> Children (Alpha ~ First, Omega ~
even if there is horizontal scrolling. Last)
Increase this if your layout is wider. ----------------------------------------------------------------
------------------------------------*/
Note: IE6 works fine without this fix.
*/ .alpha {
margin-left: 0;
body { }
min-width: 960px;
} .omega {
margin-right: 0;
/* `Container }
----------------------------------------------------------------
------------------------------------*/ /* `Grid >> 12 Columns
----------------------------------------------------------------
.container_12 { ------------------------------------*/
margin-left: auto;
margin-right: auto; .container_12 .grid_1 {
width: 960px; width: 60px;
} }
/* }
The following zoom:1 rule is specifically for IE6 #form label {
+ IE7. position:relative;
Move to separate stylesheet if invalid CSS is a display: block;
problem. min-height: 41px;
*/ width: 100%;
float: left;
.clearfix, }
.container_12 {
zoom: 1;
}
.btns {
position:relative; form.js
padding-top: 28px;
text-align: right; //forms
;(function($){
} $.fn.forms=function(o){
return this.each(function(){
var th=$(this)
.btns a { ,_=th.data('forms')||{
cursor: pointer; errorCl:'error',
text-transform: capitalize; emptyCl:'empty',
padding-right: 0; invalidCl:'invalid',
background: none;
display: inline-block; notRequiredCl:'notRequired',
font-size: 14px; successCl:'success',
} successShow:'4000',
mailHandlerURL:'#',
.btns a+a { ownerEmail:'#',
margin-left: 20px; stripHTML:true,
}
smtpMailServer:'localhost',
#form .message {
width: 100%; targets:'input,textarea',
} controls:'a[data-
type=reset],a[data-type=submit]',
#form .btns span { validate:true,
display: inline-block; rx:{
width: 13px; ".name":{rx:/^[a-
} zA-Z'][a-zA-Z-' ]+[a-zA-Z']?$/,target:'input'},
".state":{rx:/^[a-
zA-Z'][a-zA-Z-' ]+[a-zA-Z']?$/,target:'input'},
.message br { ".email":
height: 0; {rx:/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|
line-height: 0; ("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]
} +\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|
(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]
#form .success { {1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]
display: none; {1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]
position: absolute; {1,2})\]?$)/i,target:'input'},
width: 100%; ".phone":{rx:/^\
background-color: #383452; +?(\d[\d\-\+\(\) ]{5,}\d$)/,target:'input'},
border: 1px solid #393553; ".fax":{rx:/^\+?
text-align: center; (\d[\d\-\+\(\) ]{5,}\d$)/,target:'input'},
padding: 20px 10px; ".message":{rx:/.
z-index: 999; {20}/,target:'textarea'}
box-sizing: border-box; },
-moz-box-sizing: border-box; /*Firefox 1- preFu:function(){
3*/
-webkit-box-sizing: border-box; /* Safari */ _.labels.each(function(){
} var label=$
(this),
inp=$ _.success=$
(_.targets,this), ('.'+_.successCl,_.form).hide()
},
defVal=inp.val(),
isRequired:function(el){
trueVal=(function(){
return !
var tmp=inp.is('input')? el.hasClass(_.notRequiredCl)
(tmp=label.html().match(/value=['"](.+?)['"]. },
+/),!!tmp&&!!tmp[1]&&tmp[1]):inp.html() isValid:function(el){
})() $.each(_.rx,function(k,d){
trueVal! if(el.is(k))
=defVal
ret=d.rx.test(el.find(d.target).val())
&&inp.val(defVal=trueVal||defVal)
})
label.data({defVal:defVal}) return ret
inp },
.bind('f isEmpty:function(el){
ocus',function(){ var tmp
return
inp.val()==defVal (tmp=el.find(_.targets).val())==''||
tmp==el.data('defVal')
},
&&(inp.val(''),_.hideEmptyFu(label),label.remov validateFu:function(el)
eClass(_.invalidCl)) {
})
.bind(' el.each(function(){
blur',function(){ var th=$
(this)
_.validateFu(label) ,req=_.
isRequired(th)
if(_.isEmpty(label)) ,empty
=_.isEmpty(th)
inp.val(defVal) ,valid=
_.isValid(th)
,_.hideErrorFu(label.removeClass(_.invalid
Cl))
if(empty&&req)
})
.bind(' _.showEmptyFu(th.addClass(_.invalidCl))
keyup',function(){ else
label.hasClass(_.invalidCl)
_.hideEmptyFu(th.removeClass(_.invalidCl))
&&_.validateFu(label)
}) if(!empty)
if(valid)
label.find('.'+_.errorCl+',.'+_.emptyCl).css({displa
y:'block'}).hide() _.hideErrorFu(th.removeClass(_.invalidCl))
}) else
_.showErrorFu(th.addClass(_.invalidCl))
setTimeout(function(){
})
}, _.success.slideUp()
getValFromLabel:function(label){ _.form.trigger('reset')
var val=$ },_.successS
('input,textarea',label).val() how)
,defVal=lab })
el.data('defVal') },
controlsFu:function(){
return $
label.length?val==defVal?'nope':val:'nope' (_.controls,_.form).each(function(){
} var th=$
,submitFu:function(){ (this)
th
_.validateFu(_.labels) .bind('
click',function(){
if(!
_.form.has('.'+_.invalidCl).length) _.form.trigger(th.data('type'))
$.ajax({
type: return false
"POST", })
})
url:_.mailHandlerURL, },
data:{
showErrorFu:function(label){
name:_.getValFromLabel($
('.name',_.form)), label.find('.'+_.errorCl).slideDown()
},
email:_.getValFromLabel($
('.email',_.form)), hideErrorFu:function(label){
phone:_.getValFromLabel($ label.find('.'+_.errorCl).slideUp()
('.phone',_.form)), },
fax:_.getValFromLabel($('.fax',_.form)), showEmptyFu:function(label){
state:_.getValFromLabel($('.state',_.form)), label.find('.'+_.emptyCl).slideDown()
message:_.getValFromLabel($ _.hideErrorFu(label)
('.message',_.form)), },
owner_email:_.ownerEmail, hideEmptyFu:function(label){
stripHTML:_.stripHTML label.find('.'+_.emptyCl).slideUp()
}, },
init:function(){
success: function(){ _.form=_.me
_.showFu() _.labels=$
} ('label',_.form)
})
}, _.preFu()
showFu:function(){
_.controlsFu()
_.success.slideDown(function(){
_.form
.bind('subm
it',function(){
if(_.validate)
_.submitFu()
else
_.form[0].submit()
return
false
})
.bind('reset'
,function(){
_.labels.removeClass(_.invalidCl)
_.labels.each(function(){
var th=$(this)
_.hideErrorFu(th)
_.hideEmptyFu(th)
})
})
_.form.trigger('reset')
}
}
_.me||
_.init(_.me=th.data({forms:_}))
typeof o=='object'
&&$.extend(_,o)
})
}
})(jQuery)
$(window).load(function(){
$('#form').forms({
ownerEmail:'#'
})
})