function MM_openBrWindow(theURL,winName,features) { //v3.0

  window.open(theURL,winName,features);

}



   function MM_preloadImages() { //v3.0

      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)

        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}

    }

    

    function MM_swapImgRestore() { //v3.0

      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

    }

    

    function MM_findObj(n, d) { //v4.01

      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {

        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}

      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];

      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);

      if(!x && d.getElementById) x=d.getElementById(n); return x;

    }

    

    function MM_swapImage() { //v3.0

      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)

       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}

    }



function showHideInfo() {

	document.getElementById('ExpandInfo').style.display = "none";

    document.getElementById('InfoBox').style.display = "block"; 

}



function hideInfo() {

    	document.getElementById('ExpandInfo').style.display = "block";

document.getElementById('InfoBox').style.display = "none";

}





function MM_jumpMenu(targ,selObj,restore){ //v3.0

  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

  if (restore) selObj.selectedIndex=0;

}



function noneBlock(){

	a_arguments = noneBlock.arguments;

	for(var i=0;i < a_arguments.length;i++){

		a_nB = a_arguments[i].split("!");s_nBit = a_nB[0];i_nBdisplay = a_nB[1];

		o_showHide = document.getElementById(s_nBit)

		o_showHide.style.display = (i_nBdisplay==0) ? "none" : (i_nBdisplay==1) ? "block" : "inline";

	}

}

function showHide() {

	for(i=0;i < showHide.arguments.length;i++){

		o_showHide = document.getElementById(showHide.arguments[i])

		s_showHide = (o_showHide.style.display!="") ? o_showHide.style.display : "none";

		o_showHide.style.display = (s_showHide=="none") ? (o_showHide.nodeName=="SPAN") ? "inline" : "block" : "none";

	}

}

function visHidden() {

	for(i=0;i < visHidden.arguments.length;i++){

		o_visHidden = document.getElementById(visHidden.arguments[i])

		s_visHidden = (o_visHidden.style.visibility!="") ? o_visHidden.style.visibility : "visible";

		o_visHidden.style.visibility = (s_visHidden=="visible") ? "hidden" : "visible";

	}

}

function cssSwitch(){

	a_args = cssSwitch.arguments;

	for(var i=0;i < a_args.length;i++){

		a_cS = a_args[i].split("!");

		document.getElementById(a_cS[0]).className = a_cS[1];

	}

}

		

function fltrObj(s_fOValue){

	a_fO = s_fOValue.split("|");

	document.getElementById(a_fO[0]).innerHTML = a_fO[1];

}

	

function load(file,target) {

	if (target != '')

		target.window.location.href = file;

	else

		window.location.href = file;

}



function popWindow(file,window,params) {

	destWindow=open(file,window,params);

	if (destWindow.opener == null) destWindow.opener = self;

		destWindow.focus();

}

		

function showtablerows(s_id){

	o_table = document.getElementById(s_id);

	a_tr = o_table.getElementsByTagName("tr");

	for(var i=0;i<a_tr.length;i++)if(a_tr[i].className=="trnone")a_tr[i].className="";

}



function launchWindow(url,w,h){

	winName = "_new"

	if (!h)popHeight = screen.availHeight - 100;

	else popHeight = h;

	winParams = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' + w + ',height=' + popHeight;

	newwin = window.open(url, winName, winParams);

	newwin.focus();

}

//////////////////////////
function popup_converter()
{
   var lpos = (screen.width) ? (screen.width - 630) /2 :0;
   var tpos = (screen.height) ? (screen.height - 300) /2 : 0;

   var settings = 'height=300,width=630,top='+tpos+',left='+lpos+',menubar=no,toolbar=no,scrollbars=yes,resizable=yes'

   win_result = window.open('http://www.cruisedirect.com/support/converter.php', 'blank', settings);
   
	win_result.focus();
}
