/*begin*/
$(document).ready(function(){if($.browser.msie&&parseInt($.browser.version)<7)setInterval(function(){var staticTop=pageHeight()/2-140;var offsetTop=staticTop+$(window).scrollTop();if($("#float_pop")[0].offsetHeight+document.documentElement.scrollTop+staticTop>=document.body.offsetHeight)return;$("#float_pop").animate({top:offsetTop},{duration:80,queue:false})},30)});$(function(){var $btn=$("#will");$btn.bind("click",function(){if($("#will").attr("checked")==true)$("#contact_form").show();else $("#contact_form").hide()})});
var windowWidth=document.documentElement.clientWidth;var windowHeight=document.documentElement.clientHeight;var popupHeight=$("#win").height();var popupWidth=$("#win").width();var popupHandelRecenter;function showWin(){var winNode=$("#win");reCenter();winNode.fadeIn("slow");popupHandelRecenter=setInterval(reCenter,20)}function hide(){var winNode=$("#win");winNode.fadeOut("slow");clearInterval(popupHandelRecenter)}
function reCenter(){$("#win").css({top:windowHeight/2-popupHeight/2+document.documentElement.scrollTop,left:windowWidth/2-popupWidth/2});var MyDiv=$("#win")[0];var MyDiv_h=MyDiv.offsetHeight;var MyDiv_w=MyDiv.offsetWidth;var height=pageHeight();var width=pageWidth();var top=topPosition();var left=leftPosition();var Div_leftPosition=left+width/2-MyDiv_w/2;MyDiv.style.left=Div_leftPosition+"px";if(MyDiv.offsetHeight>height&&document.documentElement.scrollTop+MyDiv.offsetHeight>document.body.offsetHeight){$("#win").css({top:document.body.offsetHeight-
MyDiv.offsetHeight});return}var Div_topposition=top+height/2-MyDiv_h/2;MyDiv.style.top=Div_topposition+"px"}function pageWidth(){return window.innerWidth!=null?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:document.body!=null?document.body.clientWidth:null}
function pageHeight(){return window.innerHeight!=null?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body!=null?document.body.clientHeight:null}function topPosition(){return typeof window.pageYOffset!="undefined"?window.pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop?document.body.scrollTop:0}
function leftPosition(){return typeof window.pageXOffset!="undefined"?window.pageXOffset:document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft?document.body.scrollLeft:0}
function getStyle(elem,name){if(elem.style[name])return elem.style[name];else if(elem.currentStyle)return elem.currentStyle[name];else if(document.defaultView&&document.defaultView.getComputedStyle){name=name.replace(/([A-Z])/g,"-$1");name=name.toLowerCase();var s=document.defaultView.getComputedStyle(elem,"");return s&&s.getPropertyValue(name)}else return null};

/*end*/