function enlargePic(location) {
        window.open('enlarge.php?image='+location+'','viewer','scrollbars=yes,left=0,top=0,width=620,height=600,screenX=5,screenY=5'); }

function enlargePic2(location) {
        window.open('enlargeCert.php?image='+location+'','viewer','scrollbars=yes,left=0,top=0,width=720,height=600,screenX=5,screenY=5'); }


function enlargePic3(location) {
        window.open('enlargePic.php?image='+location+'','_blank','scrollbars=no,left=0,top=0,width=720,height=600,screenX=5,screenY=5'); }

function enlargeAll(PID) {
        window.open('http://www.tallshipmodels.com/enlarge.html?PID='+PID+'','viewer','scrollbars=yes,left=0,top=0,width=620,height=600,screenX=5,screenY=5'); }

function enlargeNautical(PID) {
        window.open('enlargeNautical.php?PID='+PID+'','viewer','scrollbars=yes,left=0,top=0,width=620,height=600,screenX=5,screenY=5'); }


function cvv() {
        window.open('http://www.tallshipmodels.com/cvvcode.html','_blank','scrollbars=yes,left=0,top=0,width=620,height=600,screenX=5,screenY=5'); }


function pviiW3Cbg(obj, pviiColor) { //v1.1 by Project VII
	obj.style.backgroundColor=pviiColor
	obj.style.borderColor="#FFFFFF";
}


if (document.getElementById){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			el.style.display = "none";
		}
	}
}

function getRates(PID) {
        window.open('http://www.tallshipmodels.com/rateQuote.php?pid='+PID,'_blank','scrollbars=yes,left=0,top=0,width=650,height=450,screenX=5,screenY=5,location=no,status=no,toolbar=no'); 
}


function getInternational(PID) {
        window.open('http://www.tallshipmodels.com/rateInternational.php?pid='+PID,'_blank','scrollbars=yes,left=0,top=0,width=650,height=650,screenX=5,screenY=5,location=no,status=no,toolbar=no'); }


function getRates2() {
        window.open('http://www.tallshipmodels.com/rateQuote.php?zipbox=1','_blank','scrollbars=yes,left=0,top=0,width=650,height=450,screenX=5,screenY=5,location=no,status=no,toolbar=no');
}


function makeOffer(offer,pid) {
        window.open('http://www.tallshipmodels.com/productOffer.php?offer='+offer+'&pid='+pid+'&go=1','_blank','scrollbars=yes,left=0,top=0,width=700,height=650,screenX=5,screenY=5,location=no,status=no,toolbar=no');
}

