function ss(a){if(a){a.select()}}function se(a){if(a){a.value=a.value+" ";a.value=a.value.substr(0,a.value.length-1)}}function trim(a){return a.replace(/^\s*/,"").replace(/\s*$/,"")}function encodeRE(a){return a.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")}function wo(g,e,b,a){if(!g.name){g.name="popup_window"}if(!e){e=500}if(!b){b=400}var f=[];f[f.length]="width="+e;f[f.length]="height="+b;var d=window.open(g.href,g.name+"_popup",f.join(",")+(a?","+a:""));if(typeof(d)!="undefined"){d.focus()}return false}function wc(a){if(opener){if(opener.closed){window.open(a,"")}else{if(opener.location.href.search(a)==-1){opener.location.href=a}}opener.focus();self.close();return false}return true}function setCookie(b,e,a,g,d,f){document.cookie=b+"="+escape(e)+(a?";expires="+a.toGMTString():"")+(g?";path="+g:"")+(d?";domain="+d:"")+(f?";secure":"")}function getCookie(a){var d=a+"=";var b=document.cookie.indexOf(d);if(b==-1){return null}var e=document.cookie.indexOf(";",b+d.length);if(e==-1){e=document.cookie.length}return unescape(document.cookie.substring(b+d.length,e))}function deleteCookie(a,e,b){if(getCookie(a)){var f=new Date();f.setTime(c.getTime()-1000);document.cookie=a+"="+(e?";path="+e:"")+(b?";domain="+b:"")+";expires="+f.toGMTString()+";"}}function fixDate(b){var e=new Date(0);var a=e.getTime();if(a>0){b.setTime(b.getTime()-a)}return b}var COOKIE_PREFFIX="";if(parent.frames[0]){top.location.href="./"}function omv(b,a){YAHOO.util.Dom.setStyle([b],"background-position","0 -"+a+"px")}function omu(a){YAHOO.util.Dom.setStyle([a],"background-position","0 0")}function Payment(d,a){var d=parseInt(d);var a=parseInt(a);if(d>0&&a>0){var b=document.getElementById("payments");b.item_name.value="Cruise ID:"+d;b.amount.value=a;b.submit()}}function hideOpenPrice(d){var b="tb-"+d;var a=YAHOO.util.Dom.get("img-"+d);if(YAHOO.util.Dom.getStyle([b],"display")=="none"){YAHOO.util.Dom.setStyle([b],"display","block");a.setAttribute("src","/images/client/down_arrow.gif")}else{YAHOO.util.Dom.setStyle([b],"display","none");a.setAttribute("src","/images/client/right_arrow.gif")}document.location.href="#"+d;return false}function SearchForm(h,n,f,a){var k=new Date();var e="";var j=0;var m=0;var g="";var b=new Array("January","February","March","April","May","June","July","August","September","October","November","December");var l=new Array("russian-river-cruises","ukrainian-river-cruises","black-sea-cruises","baltic-sea-cruises","kamchatka-cruises");var q=new Array("Russian River Cruises","Ukrainian River Cruises","Black Sea Cruises","Baltic Sea Cruises","Kamchatka Cruises");if(isNaN(n)||n==""){n=parseInt(k.getFullYear())}if(isNaN(h)||h==""){j=parseInt(k.getMonth())+1;m=parseInt(k.getFullYear())}else{var p=new String(h);var o=p.indexOf(".");j=parseInt(p.substring(0,o));m=parseInt(p.substring(o+1))}e='<form method="get" id="search_form" name="search_form">';e+='<select name="Month">';for(i=0;i<b.length;i++){if(j==(i+1)){g="selected"}else{g=""}e+='<option label="'+b[i]+'" '+g+' value="'+(i+1)+'">'+b[i]+"</option>"}g="";e+="</select>";if(f==1){e+=' <select name="Route">';e+='<option label="" value="">------- select route -------</option>';for(i=0;i<l.length;i++){if(a==l[i]){g="selected"}else{g=""}e+='<option label="'+q[i]+'" '+g+' value="'+l[i]+'">'+q[i]+"</option>"}e+="</select>"}e+=' <select name="Year">';for(i=n;i<(parseInt(n)+2);i++){if(m==i){g="selected"}else{g=""}e+='<option label="'+i+'" '+g+' value="'+i+'">'+i+"</option>"}e+="</select>";e+='<input type="submit" value="Search Cruises" style="margin-left:20px;" />';e+="</form>";document.writeln(e)}function showBigMap(a){if(a==undefined){a="panel"}YAHOO.util.Dom.setStyle(a,"display","block");if(YAHOO.map){YAHOO.map.panel.hide()}else{YAHOO.namespace("map")}YAHOO.map.panel=new YAHOO.widget.Panel(a,{width:"608px",fixedcenter:true,visible:true,draggable:false,close:true});YAHOO.map.panel.render()}if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(o,b,p,e,k,m,g,f,d,n,l){if(!document.getElementById){return}this.DETECT_KEY=l?l:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(o){this.setAttribute("swf",o)}if(b){this.setAttribute("id",b)}if(p){this.setAttribute("width",p)}if(e){this.setAttribute("height",e)}if(k){this.setAttribute("version",new deconcept.PlayerVersion(k.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(m){this.addParam("bgcolor",m)}var a=f?f:"high";this.addParam("quality",a);this.setAttribute("useExpressInstall",g);this.setAttribute("doExpressInstall",false);var j=(d)?d:window.location;this.setAttribute("xiRedirectUrl",j);this.setAttribute("redirectUrl","");if(n){this.setAttribute("redirectUrl",n)}};deconcept.SWFObject.prototype={setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(b,a){this.params[b]=a},getParams:function(){return this.params},addVariable:function(b,a){this.variables[b]=a},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var d=new Array();var b;var a=this.getVariables();for(b in a){d.push(b+"="+a[b])}return d},getSWFHTML:function(){var b="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn")}b='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"';b+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var g=this.getParams();for(var f in g){b+=[f]+'="'+g[f]+'" '}var e=this.getVariablePairs().join("&");if(e.length>0){b+='flashvars="'+e+'"'}b+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX")}b='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';b+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var d=this.getParams();for(var f in d){b+='<param name="'+f+'" value="'+d[f]+'" />'}var a=this.getVariablePairs().join("&");if(a.length>0){b+='<param name="flashvars" value="'+a+'" />'}b+="</object>"}return b},write:function(b){if(this.getAttribute("useExpressInstall")){var a=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(a)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var d=(typeof b=="string")?document.getElementById(b):b;d.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var f=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){f=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=new deconcept.PlayerVersion([6,0,21]);b.AllowScriptAccess="always"}catch(d){if(f.major==6){return f}}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(b!=null){f=new deconcept.PlayerVersion(b.GetVariable("$version").split(" ")[1].split(","))}}return f};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(a){var e=document.location.search||document.location.hash;if(e){var d=e.substring(1).split("&");for(var b=0;b<d.length;b++){if(d[b].substring(0,d[b].indexOf("="))==a){return d[b].substring((d[b].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return}var d=document.getElementsByTagName("OBJECT");for(var b=0;b<d.length;b++){d[b].style.display="none";for(var a in d[b]){if(typeof d[b][a]=="function"){d[b][a]=function(){}}}}};deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};if(typeof window.onunload=="function"){var a=window.onunload;window.onunload=function(){deconcept.SWFObjectUtil.cleanupSWFs();a()}}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs}};if(typeof window.onbeforeunload=="function"){var oldBeforeUnload=window.onbeforeunload;window.onbeforeunload=function(){deconcept.SWFObjectUtil.prepUnload();oldBeforeUnload()}}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload}if(Array.prototype.push==null){Array.prototype.push=function(a){this[this.length]=a;return this.length}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;YAHOO.util.Event.onContentReady("menu",function(){var a=new YAHOO.widget.MenuBar("menu",{autosubmenudisplay:true,hidedelay:897,lazyload:true});a.render()});