function P7_ExpMenu(){ //v1.1.0.2 by PVII-www.projectseven.com
 if(navigator.appVersion.indexOf("MSIE")==-1){return;}
 var i,k,g,lg,r=/\s*p7hvr/,nn='',c,cs='p7hvr',bv='p7menubar';
 for(i=0;i<10;i++){g=document.getElementById(bv+nn);if(g){
 lg=g.getElementsByTagName("LI");if(lg){for(k=0;k<lg.length;k++){
 lg[k].onmouseover=function(){c=this.className;cl=(c)?c+' '+cs:cs;
 this.className=cl;};lg[k].onmouseout=function(){c=this.className;
 this.className=(c)?c.replace(r,''):'';};}}}nn=i+1;}



}



function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}




function scroll_test() {

// Scrollers width here (in pixels)
var scrollerwidth="164px"

// Scrollers height here
var scrollerheight="120px"

// Scrollers speed here (larger is faster 1-30)
var scrollerspeed=1



// Scrollers content goes here! Keep all of the message on the same line!


var scrollercontent='<center><font face="Tahoma" color="#000000" size="1">Wow! What an incredible place. The grounds and views are breathtaking. We felt welcome from the moment we arrived. The service was the best I have experienced anywhere! The diving...Wow! It was spectacular! The Rainbow Reef and White Wall exceeded our expectations and the dive staff were great. There is nothing we would change. It was perfect! <br> Ken and Heidi, USA. <br> <br> What a magical experience! When you think of Fiji, this place has all, and then some... Our hats off to the staff and management that have taken care of us though we were family. The  location is superb along with the gourmet meals. Learning SCUBA was a very comfortable and enjoyable experience here. Loved our early morning fishing trips. Will be back real soon. Randy and Katy Rawlins, USA.<br> <br>  Paradise here I am! Beyound all expectations. The atmosphere, beauty and friendliness of the staff is fantastic. We were made to feel like family. What an absolutely beautiful place to do my Advance Dive Certificate. Thank you for the Fijian Massages. Will return for a longer stay next. Robyn Spinley, Australia. <br> <br> Wow! What an incredible place. The grounds and views are breathtaking. We felt welcome from the moment we arrived. The service was the best I have experienced anywhere! The diving...Wow! It was spectacular! The Rainbow Reef and White Wall exceeded our expectations and the dive staff were great. There is nothing we would change. It was perfect! <br> Ken and Heidi, USA. <br> <br>  What a magical experience! When you think of Fiji, this place has all, and then some... Our hats off to the staff and management that have taken care of us though we were family. The  location is superb along with the gourmet meals. Learning SCUBA was a very comfortable and enjoyable experience here. Loved our early morning fishing trips. Will be back real soon. Randy and Katy Rawlins, USA.<br> <br> Paradise here I am! Beyound all expectations. The atmosphere, beauty and friendliness of the staff is fantastic. We were made to feel like family. What an absolutely beautiful place to do my Advance Dive Certificate. Thank you for the Fijian Massages. Will return for a longer stay next. Robyn Spinley, Australia.</font><center>'

var pauseit=1


// Change nothing below!

scrollerspeed=(document.all)? scrollerspeed : Math.max(1, scrollerspeed-1) //slow speed down by 1 for NS
var copyspeed=scrollerspeed
var iedom=document.all||document.getElementById
var actualheight=''
var cross_scroller, ns_scroller
var pausespeed=(pauseit==0)? copyspeed: 0

function populate(){
if (iedom){
cross_scroller=document.getElementById? document.getElementById("iescroller") : document.all.iescroller
cross_scroller.style.top=parseInt(scrollerheight)+2+"px"
cross_scroller.innerHTML=scrollercontent
actualheight=cross_scroller.offsetHeight
}
else if (document.layers){
ns_scroller=document.ns_scroller.document.ns_scroller2
ns_scroller.top=parseInt(scrollerheight)+1
ns_scroller.document.write(scrollercontent)
ns_scroller.document.close()
actualheight=ns_scroller.document.height
}
lefttime=setInterval("scrollscroller()",130)
}
window.onload=populate

function scrollscroller(){

if (iedom){
if (parseInt(cross_scroller.style.top)>(actualheight*(-1)+8))
cross_scroller.style.top=parseInt(cross_scroller.style.top)-copyspeed+"px"
else
cross_scroller.style.top=parseInt(scrollerheight)+2+"px"
}
else if (document.layers){
if (ns_scroller.top>(actualheight*(-1)+8))
ns_scroller.top-=copyspeed
else
ns_scroller.top=parseInt(scrollerheight)+8
}
}

if (iedom||document.layers){
with (document){
if (iedom){
write('<div style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden" onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=scrollerspeed">')
write('<div id="iescroller" style="position:absolute;left:0px;top:0px;width:100%;">')
write('</div></div>')
}
else if (document.layers){
write('<ilayer width='+scrollerwidth+' height='+scrollerheight+' name="ns_scroller">')
write('<layer name="ns_scroller2" width='+scrollerwidth+' height='+scrollerheight+' left=0 top=0 onMouseover="copyspeed=pausespeed" onMouseout="copyspeed=scrollerspeed"></layer>')
write('</ilayer>')
}
}
}



}

function EmbedBookingRequest_ReturnHTML()
	{
		

var currentTime = new Date(); 
var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
var year = currentTime.getFullYear();
var date_from = year + "-" + month + "-" + day;


	document.writeln('<form name="searchform" action="http://reservation.worldweb.com/hotel/703/" method="get">');
	document.writeln('<input type="hidden" name="listing_id" value="703">');
	document.writeln('<input type="hidden" name="mode" value="pleasewait">');
	document.writeln('<input type="hidden" name="nextcommand" value="roomsearch">');
	document.writeln('<input type="hidden" name="hotel_id" value="703">');
	document.writeln('<input type="hidden" name="area_id" value="">');
	document.writeln('<input type="hidden" name="reservationcode_id" value="">');
	document.writeln('<input type="hidden" name="location_id" value="">');
	document.writeln('<input type="hidden" name="language" value="english">');

document.writeln('<TABLE><TR>');
document.writeln('<TD style="font-family: arial; font-size: 8pt; color: #CCCCCC; text-align:left;" ALIGN="LEFT" VALIGN="BOTTOM">Arrival Date<br>');

document.writeln("<input type=text name=date_from id=date_from value=");
document.writeln(date_from);
document.writeln(' size="10" style="font-size:8pt;width:75px;height:8.5pt;"></TD>');
document.writeln('<TD style="font-family: arial; font-size: 8pt; color: #CCCCCC; text-align:left;" VALIGN="BOTTOM">Nights<br><select name="num_nights" style="width:50px;height:13pt;font-size:8pt"><option value="1">1<option value="2">2<option value="3">3<option value="4">4<option value="5">5<option value="6">6<option value="7">7<option value="8">8<option value="9">9<option value="10">10<option value="11">11<option value="12">12<option value="13">13<option value="14">14<option value="15">15<option value="16">16<option value="17">17<option value="18">18<option value="19">19<option value="20">20<option value="21">21<option value="22">22<option value="23">23<option value="24">24<option value="25">25<option value="26">26<option value="27">27<option value="28">28<option value="29">29<option value="30">30<option value="31">31<option value="32">32<option value="33">33<option value="34">34<option value="35">35<option value="36">36<option value="37">37<option value="38">38<option value="39">39<option value="40">40<option value="41">41<option value="42">42<option value="43">43<option value="44">44<option value="45">45<option value="46">46<option value="47">47<option value="48">48<option value="49">49</select></TD>');
document.writeln('<TD style="font-family: arial; font-size: 8pt; color: #CCCCCC; text-align:left;" VALIGN="BOTTOM">Adults<br><select name="num_adults" style="width:50px;height:13pt;font-size:8pt"><option value="1" selected>1<option value="2">2<option value="3">3<option value="4">4</select></TD>');
document.writeln('<TD style="font-family: arial; font-size: 8pt; color: #CCCCCC; text-align:left;" VALIGN="BOTTOM"></TD>');
document.writeln('<TD style="font-family: arial; font-size: 8pt; color: #CCCCCC; text-align:left;" VALIGN="BOTTOM">Infants<br><select name="num_babies" style="width:40px;height:13pt;font-size:8pt"><option value="0">0<option value="1">1<option value="2">2</select></TD>');
document.writeln('<TD style="font-family: arial; font-size: 8pt; color: #CCCCCC; text-align:left;" VALIGN="BOTTOM">Access code<br><input type="text" name="access_code" size="6" style="font-size:8pt;width:50px;height:8.5pt;"></TD>');
document.writeln('<TD style="font-family: arial; font-size: 8pt; color: #CCCCCC; text-align:left;" VALIGN="BOTTOM">Currency<br><select name="exchange_rates" style="height:13pt;font-size:8pt"><option value="CDN">CDN<option value="USD">USD<option value="EUR">EUR</select></TD>');
document.writeln('<TD style="font-family: arial; font-size: 8pt; color: #CCCCCC; text-align:left;" VALIGN="bottom"><input type="submit" style="height:14pt;font-size:8pt" value="Availability Search"></TD>');
document.writeln('</TR></TABLE>');
	document.writeln('</form>');
	}

function CheckUnitStyleSearchButtons(flag)
	{
	var form = document.searchform;
	if (flag)
		form.turn_on_unitstyle_in_search_all.checked = false;

	if (form.turn_on_unitstyle_in_search_all.checked)
		{
		form.turn_on_unitstyle_in_search_bit0.checked = false;
		form.turn_on_unitstyle_in_search_bit1.checked = false;
		form.turn_on_unitstyle_in_search_bit2.checked = false;
		}
	else if (form.turn_on_unitstyle_in_search_bit0.checked || form.turn_on_unitstyle_in_search_bit1.checked || form.turn_on_unitstyle_in_search_bit2.checked)
		{
		form.turn_on_unitstyle_in_search_all.checked = false;
		}
	}

function checkDate(date)
	{
	var cur = new Date();
	cur.setFullYear(2011,1-1,7);
	//alert(date + ', ' + cur);
	if (cur.getYear() < date.getYear())
		return [true, ''];

	if (cur.getYear() == date.getYear() && cur.getMonth() < date.getMonth())
		return [true, ''];

	if (cur.getYear() == date.getYear() && cur.getMonth() == date.getMonth() && cur.getDate() <= date.getDate())
		return [true, ''];

	return [false, ''];
	}


