function mailpage()
{
  mail_str = "mailto:?subject= IslandsandOceans.com - Welcome to the Sunny Side of Life! ";
  mail_str += "&body= Thought you might be interested in this stunning offer from IslandsandOceans.com";
  mail_str += ". Click on this link or copy and paste it into your address bar, " + location.href; 
  location.href = mail_str;
}

function addbookmark()
{
bookmarkurl="http://javascript.internet.com/"
bookmarktitle="Welcome To JavaScript Source"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  var x=selObj.options[selObj.selectedIndex].value;
  if (restore) selObj.selectedIndex=0;
  eval(targ+".location='searchresults.php?search="+x+"'");
}


function toggleTbodyOff(id){
	if(document.getElementById){
		var tbod=document.getElementById(id);
     	if(tbod&&typeof tbod.className=='string'){
     		if(tbod.className=='off'){tbod.className='off';}
     		else{tbod.className='off';}
     	}
    }
   	return false;
}

function toggleTbodyOn(id){
	if(document.getElementById){
		var tbod=document.getElementById(id);
     	if(tbod&&typeof tbod.className=='string'){
     		if(tbod.className=='off'){tbod.className='on';}
     		else{tbod.className='on';}
     	}
    }
   	return false;
}

function MM_openBrWindow(theURL,winName,w,h,scrollbars){ 
	LeftPosition=(screen.width)?(screen.width-w)/2:100;
  	TopPosition=(screen.height)?(screen.height-h)/2:100;
  
  	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scrollbars+',location=no,directories=no,status=0,menubar=no,toolbar=no,resizable=no';
  	URL = theURL;
  	window.open(URL,winName,settings);
}

// =======================================
// Slideshow script
// =======================================

// (C) 2000 www.CodeLifter.com
// http://www.codelifter.com
// Free for all users, but leave in this  header
// NS4-6,IE4-6
// Fade effect only in IE; degrades gracefully

// ===========================
// set the following variables
// ===========================

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// ===========================
// do not edit anything below this line
// ===========================

var t
var j = 0
var p = 0

var preLoad = new Array()

function theLoader( pic ){
	preLoad[p] = new Image()
	preLoad[p].src = pic
	p = p + 1
}

function runSlideShow(){   
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
// =======================================
// End of Slideshow script
// =======================================


