function bookmark(title,url){if(window.sidebar)
window.sidebar.addPanel(title,url,"");else if(window.opera&&window.print){var elem=document.createElement('a');elem.setAttribute('href',url);elem.setAttribute('title',title);elem.setAttribute('rel','sidebar');elem.click();}else if(document.all){window.external.AddFavorite(url,title);}else{alert('Please press Control-D (for Windows, Linux) or Command-D (for Apple) to bookmark this page');}}
function emailPage(uid){window.open("/Email-Page?UID="+uid,"pop","width=300,height=250,toolbars=0,scrollbars=0");}
function printPage(){window.print();}
function showEvents(type){document.getElementById('display').value=type;document.getElementById('refineSearch').submit();}
function buy(i){top.window.location.href="/Cart/Add?ItemType=TT&ItemID="+i+"&Quantity="+document.getElementById('s'+i).value}
function buyCustom(i){quantity=document.getElementById('s'+i).value;if(!quantity){alert('Please select a quantity');return;}
top.window.location.href="/Cart/Add?ItemType=CT&ItemID="+i+"&Quantity="+quantity;}
function buyPricedEvent(EventID,EventCatID){quantity=document.getElementById('s'+EventCatID).value;if(!quantity){alert('Please select a quantity');document.getElementById('s'+EventCatID).focus();return;}
top.window.location.href="/Cart/Add?ItemType=PE&ItemID="+EventCatID+"&Quantity="+quantity+"&Params[EventID]="+EventID;}
function notes(id){note=document.getElementById('notes'+id);if(note.className=='hide')note.className='show';else note.className='hide';}
function addItemToCart(i){top.location.href='/Cart/Add/Items/'+i+'/'+document.getElementById('item'+i).value}
function changeItemQuantity(i){top.location.href='/Cart/Items/Quantity/'+i+'/'+document.getElementById('item'+i).value}
function changeTTQuantity(i){top.location.href='/Cart/Tickets/Quantity/'+i+'/'+document.getElementById('tt'+i).value}
function colHeight(){try{var bottomPos=findPosY(document.getElementById('bottomNav1'));}catch(e){}
try{var leftbar=document.getElementById('leftbar');if(leftbar){var newHeight=bottomPos-findPosY(leftbar);if(newHeight>leftbar.clientHeight)leftbar.style.height=newHeight+'px';}
var rightbar=document.getElementById('rightbar');if(rightbar){var newHeight=bottomPos-findPosY(rightbar);if(newHeight>rightbar.clientHeight)rightbar.style.height=newHeight+'px';}}catch(e){}}
function findPosY(obj){try{var curtop=0;if(obj.offsetParent){while(obj.offsetParent){curtop+=obj.offsetTop
obj=obj.offsetParent;}}
else if(obj.y){curtop+=obj.y;}}
catch(e){}
return curtop;}
function Float(id,sy,minY,startMoveAt,stopMoveAt,bumper){var objFloat=document.getElementById(id);var refObj=document.getElementById(bumper);var agt=navigator.userAgent.toLowerCase();if(agt.indexOf("msie 6.")!=-1)isIE6=true;else isIE6=false;objFloat.cy=objFloat.sy=sy;window[id+"_obj"]=objFloat;objFloat.doFloat=function(){var currentScrollTop=getScroll().top;var containingElementTop=getY(refObj);var containingElementHeight=refObj.offsetHeight;var floatElementHeight=this.offsetHeight;var bodyHeight=document.body.clientWidth;var fullHeight=document.body.offsetHeight;this.newLocation=0;if(currentScrollTop>=startMoveAt&&(fullHeight-currentScrollTop)>stopMoveAt){if(isIE6){this.style.position="absolute";this.style.top=currentScrollTop;}else{this.style.position="fixed";this.style.top="0px";}}else if((fullHeight-currentScrollTop)<=stopMoveAt){this.style.position="absolute";this.style.top=(fullHeight-stopMoveAt-180)+"px";}else{this.style.position="absolute";this.style.top=minY+"px";}
setTimeout(this.id+"_obj.doFloat()",250);}
objFloat.doFloat();return objFloat;}
getScroll=function(){var top=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;var left=window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;return{top:top,left:left,offset:{x:left,y:top}};}
function getY(oElement){var iReturnValue=0;while(oElement!=null){iReturnValue+=oElement.offsetTop;oElement=oElement.offsetParent;}
return iReturnValue;}
getBorderBox=function(node){return{width:node.offsetWidth,height:node.offsetHeight};}
function togglePassword(){if(document.getElementById('CheckReturning').checked){document.getElementById('PasswordDiv').style.display='';document.getElementById('Password').disabled=false;}else{document.getElementById('PasswordDiv').style.display='none';document.getElementById('Password').disabled=true;}}
spotlightId=0;spotlightTags=Array();function startSpotlight(json){var list=eval(json);for(i=0;i<list.length;i++){image=new Image();image.src=list[i]['Image'];image.alt=list[i]['Name'];image.border=0;spotlightTags[i]=document.createElement('a');spotlightTags[i].setAttribute('href',list[i]['URL']);spotlightTags[i].setAttribute('title',list[i]['Name']);spotlightTags[i].appendChild(image);}
spotlight();}
function spotlight(){if(!document.getElementById('spotlightImage'))document.write('<div id="spotlightImage"></div>');div=document.getElementById('spotlightImage');if(!spotlightTags[spotlightId])spotlightId=0;try{id=spotlightId-1;if(id<0)id=spotlightTags.length-1;div.removeChild(spotlightTags[id]);}catch(e){}
div.innerHTML='';div.appendChild(spotlightTags[spotlightId++]);setTimeout("spotlight()",7000);}
function fieldClear(obj,defaultSearchTxt){if(obj.Val){if(obj.value==''){obj.value=obj.Val;obj.Val=null;obj.first=null;}
else{obj.Val=null;}}else if(!obj.first){obj.Val=obj.value;if((!defaultSearchTxt)||((defaultSearchTxt)&&(obj.value.toLowerCase()==defaultSearchTxt.toLowerCase())))
{obj.value='';}
obj.first='true';}}
function Launch(page,width,height){OpenWin=this.open(page,"Email","toolbar=no, menubar=no ,location=no, scrollbars=yes, resizable=no, width="+width+", height="+height+", top="+(screen.height/2-height/2)+", left="+(screen.width/2-width/2)+"\"");}