// JavaScript Document

/* Optional: Temporarily hide the "tabber" class so it does not "flash"
   on the page as plain HTML. After tabber runs, the class is changed
   to "tabberlive" and it will appear. */

document.write('<style type="text/css">.tabber{display:none;}<\/style>');
function Logo(fla,xx,yy) 
{
outer = document.getElementById(fla);
var anchors = outer.getElementsByTagName('a');
for (var i=0; i<anchors.length; i++){
		var anchor = anchors[i];
		anchor.style.backgroundPosition = xx+'px '+ yy+ 'px';
	}
}

Cufon.replace('h1');
Cufon.replace('h2');
Cufon.replace('h3');
Cufon.replace('.terrace_header');
Cufon.replace('.tabbernav');
function showDiv(shID) {
	document.getElementById(shID).style.visibility="visible";
}
function hideDiv(shID) {
	document.getElementById(shID).style.visibility="hidden";
}
function displayOn(shID, type){
	document.getElementById(shID).style.display=type;
}
function displayOff(shID){
	document.getElementById(shID).style.display="none";
}
function onTestimonial(shID, type, linkk, linkk2){
	document.getElementById(shID).style.display=type;
	document.getElementById(linkk).className="terrace_toggle_chosen";
	document.getElementById(linkk2).className="";
}
function offTestimonial(shID){
	document.getElementById(shID).style.display="none";
}

//Disable right click script 
//visit http://www.rainbow.arch.scriptmania.com/scripts/ 
var message="Sorry, right-click has been disabled"; 
/////////////////////////////////// 
function clickIE() {if (document.all) {(message);return false;}} 
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) { 
if (e.which==2||e.which==3) {(message);return false;}}} 
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} 
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} 
document.oncontextmenu=new Function("return false") 
// --> 



  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-15616046-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
