	document.writeln("<style>")
	document.writeln(".lspace{padding-left: 25px; padding-right: 25px}")
	document.writeln(".mobg{background-image: url(''); background-repeat: repeat-x; background-position-y: top; cursor: pointer}")
	if(jstrUASafari){

		document.writeln("a.toplinkb:link		{text-decoration: none; font-size: 13px; color: #414242; font-weight:bold; text-shadow: 1px 1px 0px #777777}")
		document.writeln("a.toplinkb:visited	{text-decoration: none; font-size: 13px; color: #414242; font-weight:bold; text-shadow: 1px 1px 0px #777777}")
		document.writeln("a.toplinkb:hover		{text-decoration: none; font-size: 13px; color: #CC0000; font-weight:bold; text-shadow: 1px 0px 1px #777777}")
		document.writeln(".searchI{width: 150px}")
		if(jbrowlang=2){
			document.writeln(".searchI{width: 150px}")
		}else if(jbrowlang=3){
			document.writeln(".searchI{width: 165px}")
		}else{
			document.writeln(".searchI{width: 167px}")
		}
	}else{
		document.writeln("a.toplinkb:link		{text-decoration: none; font-size: 12px; color: #414242; font-weight:bold}")
		document.writeln("a.toplinkb:visited	{text-decoration: none; font-size: 12px; color: #414242; font-weight:bold}")
		document.writeln("a.toplinkb:hover		{text-decoration: none; font-size: 12px; color: #CC0000; font-weight:bold}")
		if(jbrowlang=2){
			document.writeln(".searchI{width: 156px; height: 19px; padding-top: 3px; border-left-width:0px; border-right-width:0px; border-top: 0px; border-bottom: 0px; background-image:url('../images/applmen/searchfield_ud.png'); background-repeat:repeat-x; background-position-y:center; font-size: 11px; font-family: Arial}")
		}else if(jbrowlang=3){
			document.writeln(".searchI{width: 168px; height: 19px; padding-top: 3px; border-left-width:0px; border-right-width:0px; border-top: 0px; border-bottom: 0px; background-image:url('../images/applmen/searchfield_ud.png'); background-repeat:repeat-x; background-position-y:center; font-size: 11px; font-family: Arial}")
		}else{
			document.writeln(".searchI{width: 165px; height: 19px; padding-top: 3px; border-left-width:0px; border-right-width:0px; border-top: 0px; border-bottom: 0px; background-image:url('../images/applmen/searchfield_ud.png'); background-repeat:repeat-x; background-position-y:center; font-size: 11px; font-family: Arial}")
		}
		document.writeln(".searchL{padding-left: 20px; background-image: url('../images/applmen/searchfield_leftcap.png'); background-repeat: no-repeat; background-position: left center}")
		document.writeln(".searchR{padding-right: 10px; background-image: url('../images/applmen/searchfield_rightcap.png'); background-repeat: no-repeat; background-position: right center}")
	}
	document.writeln("</style>")


function mot(mo,idno){
  	var cName='c'+idno
	var tName='t'+idno
	var pName='p'+idno
	var pNameR='p'+(idno+1)
	if(mo==0){
		document.getElementById(cName).style.backgroundImage=""
		document.getElementById(tName).style.color='#414242'
		if(idno!=1){
			document.getElementById(pName).src="../images/applmen/navbgMidb.png"
		}else{
			document.getElementById(pName).style.backgroundImage=""
		}
		document.getElementById(pNameR).src="../images/applmen/navbgMidb.png"
	}else if(mo==1){
		document.getElementById(cName).style.backgroundImage="url('../images/applmen/mo.png')"
		document.getElementById(tName).style.color='#ffffff'
		if(idno!=1){
			document.getElementById(pName).src="../images/applmen/moL.gif"
		}else{
			document.getElementById(pName).style.backgroundImage="url('../images/applmen/navbgLround.png')"
		}
		document.getElementById(pNameR).src="../images/applmen/moR.gif"
	}else if(mo==2){
		document.location.href=document.getElementById(tName).href
	}
}
function searchF(){
	if(document.frmSiteSearch.search.value==jvstrSearch){
		document.frmSiteSearch.search.value='';
	}
		document.frmSiteSearch.search.style.color="#000000";
}
function searchB(){
	if(document.frmSiteSearch.search.value==''){
		document.frmSiteSearch.search.value=jvstrSearch;
	}
		document.frmSiteSearch.search.style.color="#777777";
}

function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft;
		curtop = obj.offsetTop;
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft;
			curtop += obj.offsetTop;
		}
	}
	return [curleft,curtop];
}

function CheckForm(){if(document.frmSiteSearch.search.value===""){alert("Please enter at least one keyword to search");document.frmSiteSearch.search.focus();return false;}else{document.frmSiteSearch.submit();}}

	function changeProp(){

		document.getElementById("prop"+jCurrnumb).style.display="none";
		if(document.getElementById("iStatus"+jCurrnumb))document.getElementById("iStatus"+jCurrnumb).style.display="none";

		var randomnumber=Math.floor(Math.random()*(jMaxNumb))+1;jCurrnumb=randomnumber;
		//jCurrnumb=jCurrnumb+1;if(jCurrnumb>jMaxNumb){jCurrnumb=1};

		document.getElementById("prop"+jCurrnumb).style.display="block";
		if(document.getElementById("iStatus"+jCurrnumb))document.getElementById("iStatus"+jCurrnumb).style.display="block";
	}
	function start_Int(){
		intval=setInterval("changeProp()",5000)
	}
	function stop_Int(){
        if(intval!=""){
          window.clearInterval(intval);
          intval="";
      }
     }

function pops(){
	if(document.getElementById('popup').style.display=='none'){
		var width = window.innerWidth || (window.document.documentElement.clientWidth || window.document.body.clientWidth);
		var height = window.innerHeight || (window.document.documentElement.clientHeight || window.document.body.clientHeight);
		var x = window.pageXOffset || (window.document.documentElement.scrollLeft || window.document.body.scrollLeft);
		var y = window.pageYOffset || (window.document.documentElement.scrollTop || window.document.body.scrollTop);
	
		var popupWidth = 910; 
		var popuHeight = 676; 
		var SetPopupWidth = ((width/2)-(popupWidth/2))+x;
		var SetPopuHeight = ((height/2)-(popuHeight/2))+y;
	
		if(SetPopupWidth > 0){
			document.getElementById('popup').style.left = SetPopupWidth;
		}else{
			document.getElementById('popup').style.left = 0;
		}
	
		if(SetPopuHeight > 0){
			document.getElementById('popup').style.top = SetPopuHeight;
		}else{
			document.getElementById('popup').style.top = 0;
		}
		document.getElementById('popup').style.display='block';
	}
}
function closepop(){
	document.getElementById('popup').style.display='none';
}
function swappic(picnumber){
 	for (var picno=0; picno<10; picno++) {
		if(document.getElementById('pic'+picno)){
			document.getElementById('pic'+picno).style.display='none';
			document.getElementById('thmb'+picno).style.border='1px solid #FFF';
		}		
	}
	if(document.getElementById('thmb'+picnumber))document.getElementById('thmb'+picnumber).style.border='1px solid #CCC';
	if(document.getElementById('pic'+picnumber))document.getElementById('pic'+picnumber).style.display='block';
}



