function activeme(imgid)
{
    document.getElementById(imgid).src="../Images/Frames/active_arrow.gif";
}
    
function inactiveme(imgid)
{
   document.getElementById(imgid).src="../Images/Frames/inactive_arrow.gif";
}
   
function openme(url,width,height) 
{
    mywindow=window.open(url,'openme',"'toolbar=0,status=no,scrollbars=1,location=0,menubar=1,height=" + height + ",width=" + width + "'");
    mywindow.focus();	
    void(0);
}

function openWindow(mypage, w, h, scroll,resizable)
{  
    try
    {
    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;
    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resizable;
    ChildWin = window.open(mypage, "ChildWin", winprops);
    ChildWin.window.focus();
    }
    catch(e){;}
    
}

function openPDF(url,country) 
{    
	document.getElementById('divFrame').innerHTML='<iframe id="datamain" src="' + url + '" frameborder=0 width="600px" height="600px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="1" scrolling="no"></iframe>';
    document.getElementById('divCountry').innerHTML=country;
    void(0);
}

//runing in special tour
function changetablecolorstyle(tdname,colorname)
    {
      try
       {    
        if(colorname=='darkblue')
            {document.getElementById(tdname).className="darkbluebar";}
        else if(colorname=='grey')
            {document.getElementById(tdname).className="greybar";}
       }catch(e){;}
    }
    
 function changetablestyle(tdname)
    {
        for(var i=0;i<10;i++)
        {
            try
            {
                document.getElementById("td_"+i+"a").id="td_"+i;
            }catch(e){;}
        }
        
        for(var i=0;i<10;i++)
        {
             document.getElementById("td_"+i).className="greybar";
        }
        document.getElementById(tdname).className="darkbluebar";
        document.getElementById(tdname).id=tdname + "a";
    }
 function turedetails(url)
 {
    document.getElementById('right_div').innerHTML='<iframe id="datamain" src="HotTours/' + url + '" frameborder=0 width="370px" height="597px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="1" scrolling="yes"></iframe>';
    void(0);
 }
 //runing in classic tour
function changetablecolorstyleinclassic(tdname,colorname)
    {
      try
       {    
        if(colorname=='darkblue')
            {document.getElementById(tdname).className="darkbluebar";}
        else if(colorname=='grey')
            {document.getElementById(tdname).className="greybar";}
       }catch(e){;}
    }
    
 function changetablestyleinclassic(tdname)
    {
        for(var i=1;i<8;i++)
        {
            try
            {
                document.getElementById("td_"+i+"a").id="td_"+i;
            }catch(e){;}
        }
        
        for(var i=1;i<8;i++)
        {
             document.getElementById("td_"+i).className="greybar";
        }
        document.getElementById(tdname).className="darkbluebar";
        document.getElementById(tdname).id=tdname + "a";
    }   
 
 function turedetailsinclassic(url)
 {
    document.getElementById('right_div').innerHTML='<iframe id="datamain" src="ClassicTours/' + url + '" frameborder=0 width="370px" height="597px" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="1" scrolling="yes"></iframe>';
    void(0);
 }