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 myOnError()
	{return true;}
window.onerror = myOnError;

function turnBlackOn()
{
wh = document.getElementById("swbox");	
wh.className = "mainblacksearchboxon";
if(wh.value == "Type Search Here")
	{wh.value = "";}
}

function turnBlackOff()
{
wh = document.getElementById("swbox");	
wh.className = "mainblacksearchboxoff";
if(wh.value == "")
	{wh.value = "Type Search Here";}
}

function turnOceanOn()
{
wh = document.getElementById("swboxdisp");	
wh.className = "oceansearchboxon";
if(wh.value == "Type Search Here")
	{wh.value = "";}
}

function turnOceanOff()
{
wh = document.getElementById("swboxdisp");	
wh.className = "oceansearchboxoff";
if(wh.value == "")
	{wh.value = "Type Search Here";}
}

function turnRollerheadOn()
{
wh = document.getElementById("swrollerboxdisp");	
wh.className = "rollersearchboxon";
if(wh.value == "Type Search Here")
	{wh.value = "";}
}

function turnRollerheadOff()
{
wh = document.getElementById("swrollerboxdisp");	
wh.className = "rollersearchboxoff";
if(wh.value == "")
	{wh.value = "Type Search Here";}
}

function turnOceanTextOn()
{
wh = document.getElementById("swboxdisp");	
wh.style.color = "#808282";	
}

function turnOceanTextOff()
{
wh = document.getElementById("swboxdisp");	
wh.style.color = "#FFFFFF";	
}

function ptshade(wh)
{
o=document.getElementById(wh);
o.style.opacity='0.1'; 
o.style.filter='alpha(opacity=10)';
o.style.background='#FFFFFF';
/*o.style.border='2px solid #FFFFFF';*/
}

function ptshadeoff(wh)
{
o=document.getElementById(wh);
o.style.opacity='0'; 
o.style.filter='alpha(opacity=0)';
o.style.background='#FFFFFF';
}

function ptshadelite(wh)
{
o=document.getElementById(wh);
o.style.opacity='0.1'; 
o.style.filter='alpha(opacity=10)';
o.style.background='#FFFFFF';
/*o.style.border='2px solid #FFFFFF';*/
}

function ptshadeliteoff(wh)
{
o=document.getElementById(wh);
o.style.opacity='0'; 
o.style.filter='alpha(opacity=0)';
o.style.background='#FFFFFF';
}

function swBulletBack(wh)
{
o = document.getElementById("b"+wh);
o.src = "/header-footer/cleanbg-bullet-white.gif";
}

function swBullet(wh)
{
o = document.getElementById("b"+wh);
o.src = "/header-footer/cleanbg-bullet-grey.gif";
}


function chSearchForm()
{
v2p = document.getElementById("swrollerboxdisp");
v = document.getElementById("swbox");
v.value = v2p.value;
if(v.value == "" || v.value == "Type Search Here")
	{
	alert("Please, type your search");
	v2p.focus();							
	}
else
	{document.form_search.submit();}
}

function turnSearchBoxOn()
{
o = document.getElementById("swrollerboxdisp");
if(o.value == "Type Search Here")
	{o.value = "";}
}

function turnSearchBoxOff()
{
o = document.getElementById("swrollerboxdisp");
if(o.value == "")
	{o.value = "Type Search Here";}
}



