self.name="main_window";
function MM_openBrWindow(theURL,winName,feature)
{
URL=escape(theURL);
window.open(URL,'',feature);
}


/***********************************************
* DHTML slideshow script-  � Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice must stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var photos=new Array()
var photoslink=new Array()
var which=0
var count=0
var linkornot=1

//do NOT edit pass this line
var preloadedimages=new Array()
for (i=0;i<photos.length;i++){
preloadedimages[i]=new Image()
preloadedimages[i].src=photos[i]
}
function applyeffect(){
if (document.all && photoslider.filters){
photoslider.filters.revealTrans.Transition=Math.floor(Math.random()*23)
photoslider.filters.revealTrans.stop()
photoslider.filters.revealTrans.apply()
}
}

function playeffect(){
if (document.all && photoslider.filters)
photoslider.filters.revealTrans.play()
}

function keeptrack(){
window.status="Image "+(which+1)+" of "+photos.length
}

function backward(){
if (which>0){
which--
applyeffect()
document.images.photoslider.src=photos[which]
var myTextField = document.getElementById('big');
//myTextField.href=photos[which];
myTextField.href=photoslink[which];
playeffect()
keeptrack()
}
}
function show(which1){
which=which1
applyeffect()
document.images.photoslider.src=photos[which]
var myTextField = document.getElementById('big');
//myTextField.href=photos[which];
myTextField.href=photoslink[which];
playeffect()
keeptrack()
}
function forward(){
if (which<photos.length-1){
which++
applyeffect()
document.images.photoslider.src=photos[which]
var myTextField = document.getElementById('big');
//myTextField.href=photos[which];
myTextField.href=photoslink[which];
playeffect()
keeptrack()
}
}
function transport(){
window.location=photoslink[which]
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
function setVisibility(id, visibility) {
document.getElementById(id).style.display = visibility;
}
function active(val)
{
document.getElementById('plan').style.display="none";
document.getElementById('specifications').style.display="none";
document.getElementById('amenities').style.display="none";
document.getElementById('booking').style.display="none";


if(val=='plan')
{
document.getElementById('navigation').innerHTML="";
document.getElementById('navigation').innerHTML="<span class=detail-active>Plans</span><a href=javascript:active('specifications')>Specifications</a><a href=javascript:active('amenities')>Amenities</a><a href=javascript:active('booking')>Booking And Payments</a>";
document.getElementById('plan').style.display="block";

}
if(val=='specifications')
{
document.getElementById('navigation').innerHTML="";
document.getElementById('navigation').innerHTML="<a href=javascript:active('plan')>Plans</a><span class=detail-active>Specifications</span><a href=javascript:active('amenities')>Amenities</a><a href=javascript:active('booking')>Booking And Payments</a>";
document.getElementById('specifications').style.display="block";

}
if(val=='amenities')
{
document.getElementById('navigation').innerHTML="";
document.getElementById('navigation').innerHTML="<a href=javascript:active('plan')>Plans</a><a href=javascript:active('specifications')>Specifications</a><span class=detail-active>Amenities</span><a href=javascript:active('booking')>Booking And Payments</a>";
document.getElementById('amenities').style.display="block";

}
if(val=='booking')
{
document.getElementById('navigation').innerHTML="";
document.getElementById('navigation').innerHTML="<a href=javascript:active('plan')>Plans</a><a href=javascript:active('specifications')>Specifications</a><a href=javascript:active('amenities')>Amenities</a><span class=detail-active>Booking And Payments</span>";
document.getElementById('booking').style.display="block";

}
}
