$(function() {$(".demo" ).button();});
// $(document).ready(function(){$("#mgm").live('click',function(){_gaq.push(['_trackPageview','/goals/mgm/']);var d=new Date();var d=d.getTime();window.open(this.href+'&sub='+uidn,d,'width=750,height=750,resizeable,scrollbars');this.target = d;return false;})
// $('#harrahs').live('click',function(){_gaq.push(['_trackPageview','/goals/harrahs/']);var d=new Date();var d= d.getTime();window.open(this.href+"&subid1="+uidn, d, 'width=1000,height=800,resizeable,scrollbars'); this.target = d;})
// $('#tropicana').live('click',function(){_gaq.push(['_trackPageview','/goals/tropicana/']);var d=new Date();var d= d.getTime();window.open(this.href+"&subid1="+uidn, d, 'width=1000,height=800,resizeable,scrollbars'); this.target = d;})
// $('#ti').live('click',function(){_gaq.push(['_trackPageview','/goals/ti/']);var d=new Date();var d= d.getTime();window.open(this.href+"&sub="+uidn, d, 'width=1000,height=800,resizeable,scrollbars'); this.target = d;})
// $('#wynn').live('click',function(){_gaq.push(['_trackPageview','/goals/wynn/']);var d=new Date();var d= d.getTime();window.open(this.href+"?sid="+uidn, d, 'width=1000,height=800,resizeable,scrollbars'); this.target = d;})
// $('#bov').live('click',function(){_gaq.push(['_trackPageview','/goals/bov/']);var d=new Date();var d= d.getTime();window.open(this.href, d, 'width=1000,height=800,resizeable,scrollbars'); this.target = d;})
// $('#mgme').live('click',function(){_gaq.push(['_trackPageview','/goals/mgme/']);var d=new Date();var d= d.getTime();window.open(this.href, d, 'width=1000,height=800,resizeable,scrollbars'); this.target = d;})
// $('#blueman').live('click',function(){_gaq.push(['_trackPageview','/goals/blueman/']);var d=new Date();var d= d.getTime();window.open(this.href+"?sid="+uidn, d, 'width=1000,height=800,resizeable,scrollbars'); this.target = d;})
// $('#southw').live('click', function(){_gaq.push(['_trackPageview','/goals/southw/']);var d=new Date();var d= d.getTime();window.open(this.href+"?sid="+uidn, d, 'width=1000,height=800,resizeable,scrollbars'); this.target = d;})
// $('#cj').live('click',function(){_gaq.push(['_trackPageview','/goals/southw/']);var d=new Date();var d= d.getTime();window.open(this.href+"?sid="+uidn, d, 'width=1000,height=800,resizeable,scrollbars'); this.target = d;})
// $('#aweber').live('click',function(){_gaq.push(['_trackPageview','/goals/aweber/']);return false;})
// $('#i4vegas').live('click',function(){_gaq.push(['_trackPageview','/goals/i4vegas/']);return false;})
// $('#stations').live('click',function(){_gaq.push(['_trackPageview','/goals/stations/']);var d=new Date();var d= d.getTime();window.open(this.href+"?sid="+uidn, d, 'width=1000,height=800,resizeable,scrollbars'); this.target = d;})
// });
$(function(){$("#dialog:ui-dialog").dialog("destroy");var name=$("#user_login"),email=$("#user_email"),password=$("#user_pw1"),password2=$("#user_pw2"),allFields=$([]).add(name).add(email).add(password).add(password2),tips=$(".validateTips");function updateTips(t){tips
.text(t)
.addClass("ui-state-highlight");setTimeout(function(){tips.removeClass("ui-state-highlight",1500);},500);}
function checkLength(o,n,min,max){if(o.val().length>max||o.val().length<min){o.addClass("ui-state-error");updateTips("Length of "+n+" must be between "+
min+" and "+max+".");return false;}else{return true;}}
function checkRegexp(o,regexp,n){if(!(regexp.test(o.val()))){o.addClass("ui-state-error");updateTips(n);return false;}else{return true;}}
$("#dialog-form").dialog({autoOpen:false,height:370,width:350,modal:true,buttons:{"Create an account":function(){var bValid=true;allFields.removeClass("ui-state-error");bValid=bValid&&checkLength(name,"username",3,16);bValid=bValid&&checkLength(email,"email",6,80);bValid=bValid&&checkLength(password,"password",5,16);bValid=bValid&&checkLength(password,"password2",5,16);bValid=bValid&&checkRegexp(name,/^[a-z]([0-9a-z_])+$/i,"Username may consist of a-z, 0-9, underscores, begin with a letter.");bValid=bValid&&checkRegexp(email,/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i,"eg. help@lasventions.com");bValid=bValid&&checkRegexp(password,/^([0-9a-zA-Z])+$/,"Password field only allow : a-z 0-9");bValid=bValid&&checkRegexp(password2,/^([0-9a-zA-Z])+$/,"Password field only allow : a-z 0-9");if(bValid){$("#registerform").submit()
$(this).dialog("close");}},Cancel:function(){$(this).dialog("close");}},close:function(){allFields.val("").removeClass("ui-state-error");}});$("#create-user")
.button({icons: {primary: "ui-icon-mail-closed"}})
.click(function(){$("#dialog-form").dialog("open");});$(".create-user")
.click(function(){$("#dialog-form").dialog("open");});});$(function(){$("#dialog:ui-dialog").dialog("destroy");var name=$("#user_login"),password=$("#user_pw1"),rememberme=$("#rememberme"),allFields=$([]).add(name).add(password).add(rememberme),tips=$(".validateTips");function updateTips(t){tips.text(t).addClass("ui-state-highlight");setTimeout(function(){tips.removeClass("ui-state-highlight",1500);},500);}
function checkLength(o,n,min,max){if(o.val().length>max||o.val().length<min){o.addClass("ui-state-error");updateTips("Length of "+n+" must be between "+
min+" and "+max+".");return false;}else{return true;}}
function checkRegexp(o,regexp,n){if(!(regexp.test(o.val()))){o.addClass("ui-state-error");updateTips(n);return false;}else{return true;}}
$("#dialog-login").dialog({autoOpen:false,height:370,width:350,modal:true,buttons:{"Login":function(){var bValid=true;allFields.removeClass("ui-state-error");$("#loginform").submit()
$(this).dialog("close");},Cancel:function(){$(this).dialog("close");}},close:function(){allFields.val("").removeClass("ui-state-error");}});$(".login")
.click(function(){$("#dialog-login").dialog("open");});});$(function(){$("#dialog:ui-dialog").dialog("destroy");var name=$("#name"),email=$("#email"),comments=$("#comments"),redirect=$("#redirect"),recipient=$("#recipient"),required=$("#required"),subject=$("#subject"),allFields=$([]).add(name).add(email).add(comments).add(redirect).add(recipient).add(required).add(subject),tips=$(".validateTips");function updateTips(t){tips
.text(t)
.addClass("ui-state-highlight");setTimeout(function(){tips.removeClass("ui-state-highlight",1500);},500);}
function checkLength(o,n,min,max){if(o.val().length>max||o.val().length<min){o.addClass("ui-state-error");updateTips("Length of "+n+" must be between "+
min+" and "+max+".");return false;}else{return true;}}
function checkRegexp(o,regexp,n){if(!(regexp.test(o.val()))){o.addClass("ui-state-error");updateTips(n);return false;}else{return true;}}
$("#dialog-comment").dialog({autoOpen:false,height:370,width:350,modal:true,buttons:{"Submit Comment":function(){var bValid=true;allFields.removeClass("ui-state-error");$("#contactform").submit()
$(this).dialog("close");},Cancel:function(){$(this).dialog("close");}},close:function(){allFields.val("").removeClass("ui-state-error");}});$(".comment-dialog")
.click(function(){$("#dialog-comment").dialog("open");});});function Set_Cookie(name,value,expires,path,domain,secure)
{var today=new Date();today.setTime(today.getTime());if(expires)
{expires=expires*1000*60*60*24;}
var expires_date=new Date(today.getTime()+(expires));document.cookie=name+"="+escape(value)+
((expires)?";expires="+expires_date.toGMTString():"")+
((path)?";path="+path:"")+
((domain)?";domain="+domain:"")+
((secure)?";secure":"");}
function Get_Cookie(check_name){var a_all_cookies=document.cookie.split(';');var a_temp_cookie='';var cookie_name='';var cookie_value='';var b_cookie_found=false;for(i=0;i<a_all_cookies.length;i++)
{a_temp_cookie=a_all_cookies[i].split('=');cookie_name=a_temp_cookie[0].replace(/^\s+|\s+$/g,'');if(cookie_name==check_name)
{b_cookie_found=true;if(a_temp_cookie.length>1)
{cookie_value=unescape(a_temp_cookie[1].replace(/^\s+|\s+$/g,''));}
return cookie_value;break;}
a_temp_cookie=null;cookie_name='';}
if(!b_cookie_found)
{return null;}}
// autocomplete
$(function() { var availableTags = [
// "Las Vegas", "Las Vegas Map", "Attractions", "Hotels", "Tickets", "Shows", "Events", "Promo Codes", "Offer Codes", "Deals", "Discounts"
"Aria", "Bally's", "Bellagio", "Bill's Gamblin' Hall", "Boulder Station", "Caesars Palace", "California Hotel and Casino", "Circus Circus", "Cosmopolitan", "Encore", "Excalibur", "Flamingo", "Four Queens", "Four Seasons", "Gold Coast", "Golden Nugget", "Green Valley Ranch", "Hard Rock", "Harrah's", "Hooters", "Imperial Palace", "Las Vegas Hilton", "Luxor", "Main Street Station", "Mandalay Bay", "Mandarin Oriental", "MGM Grand", "Mirage", "Monte Carlo", "New York New York", "Orleans", "Palace Station", "Palazzo", "Palms", "Paris", "Planet Hollywood", "Planet Hollywood Towers", "Red Rock", "Rio", "Riviera", "Sante Fe Station", "Signature At MGM", "Silverton", "South Point", "Stratosphere", "Suncoast", "Sunset Station", "Terribles", "Texas Station", "THEhotel", "Treasure Island", "Tropicana", "Trump Tower", "Vdara", "Venetian", "Wynn", 
//
"Absinthe", "American Storm", "Barry Manilow", "BeatleShow Tribute!", "Believe", "Blue Man Group", "Brad Garrett's Comedy Club", "Carrot Top", "Celine Dion", "Cher", "Chippendales", "Crazy Horse Paris", "David Copperfield", "David Spade", "Donny and Marie Osmond", "Echoes of the 60's", "Fantasy", "Frank Caliendo", "Frank Marino's Divas", "George Wallace", "Gordie Brown", "Greg Londons ICONS", "Gregory Popovich Comedy Pet Theater", "Hitzville Motown", "Human Nature", "Hypnosis Unleashed", "JABBAWOCKEEZ", "Jersey Boys", "Jubilee", "KA", "LA Comedy Club at Four Queens", "Le Reve", "Legends in Concert", "Lion King", "Love", "Marc Savard Comedy Hypnosis", "Matsuri", "MENOPAUSE THE MUSICAL", "Mystere – Cirque du Soleil", "O", "PEEPSHOW", "Penn & Teller", "Phantom – The Spectacular", "Sandy Hackett's Rat Pack Show", "Sin City Comedy Show", "Sinatra Dance With Me", "Stripper 101", "Striptease the Show", "Terry Fator", "The Comedy Stop", "Magic & Tigers of Rick Thomas", "The Mentalist", "The Platters", "The Cornell Gunter Coasters", "The Marvelettes", "The Price is Right LIVE!", "The Rat Pack is Back", "Thunder From Down Under", "Tony and Tina's Wedding", "Tournament of Kings", "V-The Ultimate Variety Show", "Vegas! The Show", "Viva Elvis", "What Women Want Pass", "X Burlesque", "Zen Magic", "Zumanity", 
//
"Expedia", "Jet Blue", "Priceline", "Southwest", "Travelocity", 
//
"Artisan Hotel", "Airport Inn", "Alexis Park", "Aliante Station", "Ambassador Strip Inn Travelodge", "Americana 5", "Americas Best Value Inn & Suites", "Arizona Charlie's Boulder", "Arizona Charlie's Decatur", "Aruba Hotel", "Aston MonteLago Village", "Atrium Suites", "Best Western Main Street Inn", "Best Western Mardi Gras Hotel", "Best Western Nellis Motor Inn", "Best Western Parkview Inn", "Best Western-McCarran Inn", "Blair House Suites", "Bluegreen Club 36 Resort", "Bridger Inn Hotel", "Budget Suites Of America", "Buffalo Bill's Resort & Casino", "California", "Cancun Resort Villas", "Candlewood Suites", "Cannery Hotel", "Carriage House", "Casino Royale", "Clarion Hotel and Casino", "Clarion Hotel And Suites Emerald", "Club de Soleil", "Comfort Inn", "Courtyard Marriott", "Crestwood Suites","Desert Paradise Resort", "Desert Rose Resort", "Desert Tides Resort", "Doubletree Club", "Eastside Cannery Casino Hotel", "Econo Lodge", "El Cortez", "Element Westin - Summerlin", "Embassy Suites", "Emerald Suites", "Extended Stay America", "Fiesta Henderson", "Fiesta Rancho Station", "Fitzgeralds", "Fremont", "Gold Spike", "Golden Gate", "Grandview Resorts", "Hacienda", "Plaza", "Sahara", "Sams Town", "Tuscany Suites", "Vegas Club" ]; $( "#searchform_top_text" ).autocomplete({ source: availableTags }); });
