
function clcksrt(url){
  document.location = url;
}

function init(){

  if(chckcrnr()){
    rndd("div.bx1","all","#dee5ef","#fff","smooth border #91ABC2");
    rndd("div.pblshr","all","#ffefe6","#8d188d","smooth border #8d188d");
    rndd("div.pblhrmp","top","#ffefe6","#8d188d","smooth border #8d188d");
    rndd("div.guidehd","top","#fff","#8d188d","smooth border #8d188d");
    rndd("div.publshrmap","top","#ffefe6","#8d188d","smooth border #8d188d");  
    rndd("div.publshrhtl","top","#fff","#5A965A","smooth border #5A965A"); 
    rndd("div.tcktshdr","top","#fff","#e7f1e0","smooth border #2c4a2c"); 
    rndd("div.attractionlistheader","all","#fff","#8d188d","smooth border #8d188d"); 
    rndd("div.ddtcrtlst","all","#fff","#e7f1e0","smooth border #2c4a2c"); 
  
  }
  addbgcolorchange();
  preOpenTicket();
  rvwmlr();
  //load('city');

}

function preOpenTicket(){
  var str = document.URL;
  var id;
  if(str.search("#")>-1){
    id = str.split("#")[1];
    if(document.getElementById("tdsply_"+id)) showhide(document.getElementById("tdsply_"+id));
  }
}


function rmvrndd(selector){
  getElementsBySelector(selector).className="";
}

function filter (which) {
  var fltr = which[which.selectedIndex].value;
  if(fltr!="") fltr+="/";
  document.qck.action = document.qck.domain.value+document.qck.thisPage.value+fltr;
  document.qck.submit();
}

function nw (which) {
  var str = document.getElementById(which).value;
  str=unescape(str);
  var nw = window.open('','','menubar=yes,toolbar=yes,resizable=yes,scrollbars=yes,width=640,height=480');
  nw.document.write(str);
  return(false);
}



function rvwmlr(){
  if(document.getElementById("po")){
    var s1 = "reviews";
    var s2 = "und";
    var s3 = "ercover";
    var s4 = "tourist.";
    var s5 = "com";
    //title=escape(title);
    var str = " <i><a href=\"mailto:"+s1+"@"+s2+s3+s4+s5+"?subject=Review - "+(document.getElementById("po").innerHTML).stripHTML()+"\">Submit a Review</a></i>";
    var el = document.getElementById("rvwsbmt");
    if(el){
      el.innerHTML = str;  
    }
    el = document.getElementById("rvwsbmt2");
    if(el){
      el.innerHTML = str;  
    }
  }
}

function addbgcolorchange(){
 var lst=document.getElementsByTagName('td');
 var count=0;
 for(var i=0;i<lst.length;i++){
  if(/rt/.test(lst[i].className)){
  lst[i].parentNode.onmouseover=function(){this.className='rowin';this.style.cursor='pointer'};
  lst[i].parentNode.onmouseout=function(){this.className='rowout';this.style.cursor=''};
  lst[i].parentNode.onmousedown=function(){showhide(this)};
  }
 }
}

function showhide(str){
  var thisId = (str.id+"").after("_");
  var which1 = "tdsply_"+thisId;
  var which2 = "tdsplydesc_"+thisId;
  var which3 = "tdsplydesc2_"+thisId;
  var el1 = document.getElementById(which1);
  var el2 = document.getElementById(which2);
  var el3 = document.getElementById(which3);
  var canSee = (navigator.appName.indexOf("Microsoft") > -1) ? 'block':'table-row'; 

  if((el1.style.display == 'none')){
    el1.style.display = canSee; 
    el2.style.display = 'none';
    el3.style.display = 'none';
  }else{
    el1.style.display = 'none';
    el2.style.display = canSee;    
    el3.style.display = canSee; 

  }
}

