// tracking code

function weddingform(){
	//alert('wedding form');
}
function weddingformsuccess(){
	//alert('wedding form success');
}

//

function resize() {
   var w_newWidth,w_newHeight;
   var w_minWidth=1010, w_minHeight=675;
   
	if (navigator.appName.indexOf("Microsoft") != -1) {
	   w_newWidth=document.body.clientWidth;
	   w_newHeight=document.body.clientHeight;
	}else{
	   w_newWidth=window.innerWidth;
	   w_newHeight=window.innerHeight;
	}	
   
	if(w_newWidth < w_minWidth) {
		//alert(w_newWidth + ' -- ' + w_minWidth)
		document.site.width = w_minWidth;
	}else {
		document.site.width = w_newWidth;
	}
	
	if(w_newHeight < w_minHeight) {
		document.site.height = w_minHeight;
	}else {
		document.site.height = w_newHeight;
	}
}
function startresize(){
	resize();
	resize();
}

function popopen(thePage,theName,wt,ht){
	leftPos= (screen.width-wt)/2;
	topPos = (screen.height-ht)/2;
	newWin1 = window.open(thePage,theName,'directories=0,menubar=0,location=0,toolbars=0,status=0,resizeable=0,scrollbars=0,left='+leftPos+',top='+topPos+',width='+wt+',height='+ht);
	
	//document.getTAG.target = theName;
	//document.getTAG.submit();
}

//window.onresize = resize;
//window.onload = startresize;


function openChromeless(main, w, h){
	var ww,hh;
	if (navigator.appName.indexOf("Microsoft") != -1) {
		ww=document.body.clientWidth/2;
		hh=document.body.clientHeight/2;
	}else{
		ww=window.innerWidth/2;
		hh=window.innerHeight/2;
	}	
	//alert(main+" * "+w+" * "+h);			
	wndw = window.open(main,'','toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=' + w + ', height=' + h);
	
	if(!wndw && whichBrs() == "Safari") {
		alert('Please turn off your pop-up blocker to view this content. (Command + Shift + K) ');
	}
	//w.moveTo((ww-(w/2)),(hh-(h/2))); 
}			
function trackPage(sec, pg) {
	if(sec==undefined){
		sec='home'
	}
	if(pg!=null){
		_hbPageView(pg, "/WynnLasVegas/"+sec);
	}else{
		_hbPageView(sec, "/WynnLasVegas/"+sec);
	}	
}
function callHBX(args) {
	alert( "args is: "+args );
	var arrArgs = args.split("|"); 
	if (arrArgs[0]  == "call_hbxCallLink") { 

		//alert("calling _hbLink now, sending: "+arrArgs[1]+"   "+arrArgs[2])
		_hbLink(arrArgs[1], arrArgs[2]);
	} else if (arrArgs[0] == "call_hbxCallPageView") {

		//alert("_hbPageView"+arrArgs[0]+"   "+arrArgs[1])
		_hbPageView(arrArgs[1], arrArgs[2]);
	} else if (arrArgs[0] == "call_hbxSet") {

		//	alert("_hbSet"+arrArgs[0]+"   "+arrArgs[1])
		_hbSet(arrArgs[1], arrArgs[2]);
	} else if (arrArgs[0] == "call_hbxSend") {
		_hbSend();
	}
}

/*
AC_FL_RunContent(
	'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
	'width', '1012',
	'height', '675',
	'src', 'wynn',
	'quality', 'high',
	'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
	'align', 'middle',
	'play', 'true',
	'loop', 'true',
	'scale', 'noscale',
	'wmode', 'window',
	'devicefont', 'false',
	'id', 'main',
	'bgcolor', '#66563E',
	'name', 'main',
	'menu', 'true',
	'allowFullScreen', 'false',
	'allowScriptAccess','sameDomain',
	'movie', 'main',
	'salign', ''
); //end AC code
*/

// WEBSIDESTORY CODE HBX1.0 (Universal)-
// COPYRIGHT 1997-2005 WEBSIDESTORY,INC. ALL RIGHTS RESERVED. U.S.PATENT No. 6,393,479B1. MORE INFO:http://websidestory.com/privacy
 var _hbEC=0,_hbE=new Array;
function _hbEvent(a,b){
	b=_hbE[_hbEC++]=new Object();
	b._N=a;
	b._C=0;
	return b;
}
var hbx=_hbEvent("pv");
hbx.vpc="HBX0200u";
//hbx.gn="I.WynnLasVegas.com";
hbx.gn="ehg-wynnresortsltd.hitbox.com";
//BEGIN EDITABLE SECTION
//CONFIGURATION VARIABLES 	
//hbx.acct="DM560323I9ME38EN3";
//hbx.acct="DM560403D1WR";
//hbx.acct="DM560323I9ME";

//test global account 
//hbx.acct="DM560606IHDW;DM560403D1WR";

//wynn las vegas account
hbx.acct="DM5701220ECE38EN3;DM560323I9ME38EN3";



hbx.pn="Intro";//PAGE NAME(S)
hbx.mlc="/WynnLasVegas";//MULTI-LEVEL CONTENT CATEGORY
hbx.pndef="title";//DEFAULT PAGE NAME
hbx.ctdef="full";//DEFAULT CONTENT CATEGORY

//INSERT CUSTOM EVENTS

//END EDITABLE SECTION

//REQUIRED SECTION. CHANGE "YOURSERVER" TO VALID LOCATION ON YOUR WEB SERVER (HTTPS IF FROM SECURE SERVER)

function setPath(sec, pg) {
//	alert("setPath: "+sec+" "+pg)
	var title = "Las Vegas Hotels - Wynn Las Vegas";
	var url = new String(document.location);
	var oldPath = url.split("#")[1];
	var baseURL = url.split("#")[0];	
	if(sec==undefined){
		sec='home'
	}
	if(pg!=null){
		document.location = baseURL+"#"+sec+"/"+pg;
		document.title = title+" | "+ sec+" | "+pg;
		_hbPageView(pg, "/WynnLasVegas/"+sec);
	}else{
		document.location = baseURL+"#"+sec;
		document.title = title+" | "+ sec;
		_hbPageView(sec, "/WynnLasVegas/"+sec);
	}	
}
function getPath(){
	url = new String(document.location);
	urlPath = url.split("#");

	if(urlPath.length > 1) {
		return urlPath[1];
	} else {
		return false;
	}
}	
/** 
*
*/
function whichBrs() {
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1) return 'Opera';
	if (agt.indexOf("staroffice") != -1) return 'Star Office';
	if (agt.indexOf("webtv") != -1) return 'WebTV';
	if (agt.indexOf("beonex") != -1) return 'Beonex';
	if (agt.indexOf("chimera") != -1) return 'Chimera';
	if (agt.indexOf("netpositive") != -1) return 'NetPositive';
	if (agt.indexOf("phoenix") != -1) return 'Phoenix';
	if (agt.indexOf("firefox") != -1) return 'Firefox';
	if (agt.indexOf("safari") != -1) return 'Safari';
	if (agt.indexOf("skipstone") != -1) return 'SkipStone';
	if (agt.indexOf("msie") != -1) return 'IE';
	if (agt.indexOf("netscape") != -1) return 'Netscape';
	if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla';
	if (agt.indexOf('\/') != -1) {
	if (agt.substr(0,agt.indexOf('\/')) != 'mozilla') {
	return navigator.userAgent.substr(0,agt.indexOf('\/'));}
	else return 'Netscape';} else if (agt.indexOf(' ') != -1)
	return navigator.userAgent.substr(0,agt.indexOf(' '));
	else return navigator.userAgent;
}