function createRequestObject(){var b;var a=navigator.appName;if(a=="Microsoft Internet Explorer"){b=new ActiveXObject("Microsoft.XMLHTTP")}else{b=new XMLHttpRequest()}return b}var http=createRequestObject();function sndReq(b,d,a,c){http.open("get","make_calendar.php?action="+b+"&style_id="+c+"&month="+d+"&year="+a);http.onreadystatechange=handleResponse;http.send(null)}function handleResponse(){if(http.readyState==4){var a=http.responseText;var b=new Array();if(a.indexOf("|"!=-1)){b=a.split("|");document.getElementById(b[0]).innerHTML=b[1]}}}function show_hide(b,a){if(b=="hide"){document.getElementById(a).style.height="0";document.getElementById(a).style.width="0";document.getElementById(a).style.visibility="hidden";document.getElementById(a).style.overflow="hidden"}if(b=="show"){document.getElementById(a).style.height="80px";document.getElementById(a).style.overflow="auto";document.getElementById(a).style.visibility="visible";document.getElementById(a).style.display="inline"}}function update(b,a){if(a==1){document.getElementById(b).innerHTML="<img src='/images/marker3.gif' class='marker1'>"}if(a==2){document.getElementById(b).innerHTML="<img src='/images/marker1.gif' class='marker1'>"}}function untruncate(a,b){document.getElementById(b).innerHTML=a}function showVideo(a){$("body").prepend("<div id='whiteout'></div>");$("#whiteout").prepend("<div id='qcVideoPlayer' name='qcVideoPlayer'><div id='swfObjectVideo'></div> </div>");$("#whiteout").prepend("<div id='close_qcVideoPlayer'> </div>");$("#close_qcVideoPlayer").click(function(){document.getElementById("qcVideoPlayer").innerHTML="";$("#qcVideoPlayer").slideUp("slow",function(){$("#whiteout").hide("slow",function(){$("#whiteout").remove()})});$("#close_qcVideoPlayer").remove()});var g=document.getElementById("whiteout").style;var h=document.getElementById("qcVideoPlayer").style;var e=document.getElementById("close_qcVideoPlayer").style;var b=0,c=0;if(typeof(window.innerWidth)=="number"){b=window.innerWidth;c=window.innerHeight}else{if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){b=document.documentElement.clientWidth;c=document.documentElement.clientHeight}else{if(document.body&&(document.body.clientWidth||document.body.clientHeight)){b=document.body.clientWidth;c=document.body.clientHeight}}}g.width=b+"px";g.height=c+"px";var j=(document.all)?document.body.scrollTop:window.pageYOffset;g.top=j+"px";var i=c/2-163;h.top=i+"px";e.top=i-21+"px";$("#whiteout").show("normal",function(){g.filter="alpha(opacity=70)"});$("#qcVideoPlayer").slideDown("normal");g.visibility="visible";var f={quality:"best"};var d={movie_file:a};swfobject.embedSWF("player.swf","swfObjectVideo","320","276","8","/js/expressInstall.swf",d,f)}function changeButton(e,d){var a="testimonialDiv-"+e;var b=show[e];if(b==true){var c=$("#"+a+":hidden");c.slideDown("fast",function(){c.css("display","")});show[e]=false;d.innerHTML="Hide Testimonial"}else{$("#"+a+":visible").slideUp("fast");show[e]=true;d.innerHTML="Read Testimonial"}};