// Show a DIV
function show(id){
	if (document.getElementById){
		obj = document.getElementById(id);
		obj.style.display = "block";
	}	
}

//Set the s.prop for advertisers on information page
function track_advertisers(advertiser) {
	s=s_gi(s_account);
	s.linkTrackVars = "prop29";
	s.prop29 = advertiser;
	s.tl(this,'o',"Advertiser");
}
// Hide a DIV
function hide(id){
	if (document.getElementById){
		obj = document.getElementById(id);
		obj.style.display = "none";
	}	
}

// -------------------------------------------
// coupons page popup
// -------------------------------------------
function setUpCouponPopup(){
	$('a.couponPic').click(function(){
		var dimensions = new Array();
		dimensions = $(this).attr('rel').split('-');
		window.open(this.href,'viewer','width='+dimensions[0]+',height='+dimensions[0]);
		return false;
	});
}
// -------------------------------------------

// popup function for the tee times system
function openit(UID,SiteID,PID,RedLine,urlCourseID,showRates){
	myhandle=window.open('https://secure.guestdesk.com/reservations/?UID='+UID+'&SiteID='+SiteID+'&PID='+PID+'&SystemType='+RedLine+'&urlCourseID='+urlCourseID+'&showRates='+showRates,'windowName','toolbar=no,scrollbars=no,location=no,resizable=no,directories=no,status=yes,menubar=no,width=800,height=505,titlebar=TeeTimes,left=2,top=2');
}