function openpopup(){
var popurl="http://www.viamare.com/calculator.html"
winpops=window.open(popurl,"","width=430,height=308")
}

function openpopup3(){
var popurl="booking2/bookingR.html"
winpops=window.open(popurl,"","width=800,height=600,status,scrollbars,resizable,")
}

function openpopupxp(){
var popurl="booking2xp/bookingR.php"
winpops=window.open(popurl,"","width=800,height=600,status,scrollbars,resizable,")
}

function announcement(){
var popurl="announcements/Jadrolinija.html"
winpops=window.open(popurl,"","width=350,height=200,status,scrollbars,resizable,")
}

function enlargemain(){
	var popurl="http://www.viamare.com/cruises/images/misc/large-main.jpg"
	winpops=window.open(popurl,"","width=984,height=919")
	}

function enlargeExcursion(id){
	
	var url = 'http://local.viamare.com/cruise-excursion.php?id='+id;

window.open('http://www.viamare.com/cruise-excursion.php?id='+id,'mywindow','width=650,height=600,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');
}
/*function onlinebooking(){
var popurl="error.html"
winpops=window.open(popurl,"","width=900,height=600,status,scrollbars,resizable,")
}*/

function onlinebooking(){
var popurl="http://viamare.forth-crs.gr/english/npgres.exe?PM=BB"
winpops=window.open(popurl,"","width=830,height=600,status,scrollbars,resizable,")
}

function michelin(){
var popurl="http://www.viamichelin.co.uk/viamichelin/gbr/dyn/controller/Maps"
winpops=window.open(popurl,"","width=850,height=650,status,scrollbars,resizable,toolbar,location,menubar")
}


function deckplan() {
        hotelWindow = window.open('', 'newWin', 'width=610,height=700,scrollbars')
        hotelWindow.document.write("<HTML><HEAD><TITLE>Louis Cruise - Ship<\/TITLE><\/HEAD><BODY>")
		hotelWindow.document.write("<DIV id='Layer1' style='position:absolute; width:610px; height:700px; z-index:1; left: -0; top: -0'><img src='images/deckPlan.gif' width='600' height='882' alt='Princes Marissa Deck Plan'><\/DIV>")
		hotelWindow.document.write("<\/BODY><\/HTML>")
        hotelWindow.setTimeout("self.close();",30000)
        
}



var interfaceimg=new Array()
function preloadimg(){
for (i=0;i<arguments.length;i++){
interfaceimg[i]=new Image()
interfaceimg[i].src=arguments[i]
}
}
//Enter full URL to image tabs to preload below. Separate with comma:
preloadimg("http://www.viamare.com/tabs/bluetab.gif", "http://www.viamare.com/tabs/bluetabover.gif")

//Set tab to intially be selected when page loads:
//[which tab (1=first tab), ID of tab content to display]:
var initialtab=[1, "sc1"]

//Turn menu into single level image tabs (completely hides 2nd level)?
var turntosingle=0 //0 for no (default), 1 for yes

//Disable hyperlinks in 1st level tab images?
var disabletablinks=0 //0 for no (default), 1 for yes

////////Stop editting////////////////

var previoustab=""

if (turntosingle==1)
document.write('<style type="text/css">\n#tabcontentcontainer{display: none;}\n</style>')

function expandcontent(cid, aobject){
if (disabletablinks==1)
aobject.onclick=new Function("return false")
if (document.getElementById && turntosingle==0){
highlighttab(aobject)
if (previoustab!="")
document.getElementById(previoustab).style.display="none"
document.getElementById(cid).style.display="block"
previoustab=cid
}
}

function highlighttab(aobject){
if (typeof tabobjlinks=="undefined")
collectddimagetabs()
for (i=0; i<tabobjlinks.length; i++)
tabobjlinks[i].className=""
aobject.className="current"
}

function collectddimagetabs(){
var tabobj=document.getElementById("ddimagetabs")
tabobjlinks=tabobj.getElementsByTagName("A")
}

function do_onload(){
collectddimagetabs()
expandcontent(initialtab[1], tabobjlinks[initialtab[0]-1])
}

if (window.addEventListener)
window.addEventListener("load", do_onload, false)
else if (window.attachEvent)
window.attachEvent("onload", do_onload)
else if (document.getElementById)
window.onload=do_onload


function sendform()
{
  document.fillroutes.submit() ;
}
function sendform1()
{
  document.fillroutes1.submit() ;
}
function sendform2()
{
  document.fillroutes2.submit() ;
}
function sendform3()
{
  document.fillroutes3.submit() ;
}

function sendform4()
{
  document.fillroutes4.submit() ;
}
function sendform5()
{
  document.fillroutes5.submit() ;
}
function sendform6()
{
  document.fillroutes6.submit() ;
}
function sendform7()
{
  document.fillroutes7.submit() ;
}
function sendform8()
{
  document.fillroutes8.submit() ;
}
function sendform9()
{
  document.fillroutes9.submit() ;
}
function sendform10()
{
  document.fillroutes10.submit() ;
}
function sendform11()
{
  document.fillroutes11.submit() ;
}
function sendform12()
{
  document.fillroutes12.submit() ;
}
function sendform13()
{
  document.fillroutes13.submit() ;
}
function sendform14()
{
  document.fillroutes14.submit() ;
}
function sendform15()
{
  document.fillroutes15.submit() ;
}
function sendform16()
{
  document.fillroutes16.submit() ;
}
function sendform17()
{
  document.fillroutes17.submit() ;
}
function sendform18()
{
  document.fillroutes18.submit() ;
}
function sendform19()
{
  document.fillroutes19.submit() ;
}
function sendform20()
{
  document.fillroutes20.submit() ;
}
// ACTIVATE - DE-ACTIVATE the drop down 


function single(){
if (document.selectTimetable.trip[1].checked == true)
	{
document.selectTimetable.Inbound_route.disabled=true
document.selectTimetable.Inbound_month.disabled=true
document.selectTimetable.Inbound_Year.disabled=true
		}
else if (document.selectTimetable.trip[0].checked == true){
document.selectTimetable.Inbound_route.disabled=false
document.selectTimetable.Inbound_month.disabled=false
document.selectTimetable.Inbound_Year.disabled=false
	}
}

function single2(){
if (document.selectTimetable2.trip[1].checked == true)
	{
document.selectTimetable2.Inbound_route.disabled=true
document.selectTimetable2.Inbound_month.disabled=true
document.selectTimetable2.Inbound_Year.disabled=true
		}
else if (document.selectTimetable2.trip[0].checked == true){
document.selectTimetable2.Inbound_route.disabled=false
document.selectTimetable2.Inbound_month.disabled=false
document.selectTimetable2.Inbound_Year.disabled=false
	}
}