var actDiv = 0;

function gotoPage(navID,itemID){
	if (itemID==undefined){itemID = 0}
	window.location.href = "index.asp?page=" + navID + "&item=" + itemID + "&lan=2"
}

	function popupImage(parImage, parTitle){
		window.open("cmpage/PhotoPopUp.asp?img="+parImage+"&title="+parTitle,"Photo",'height=250,width=250,status=no,toolbar=no,menubar=no,location=no,top=150,left=150');
	}
	function leapto(form) {
		var myindex=form.selectrmenu.selectedIndex;
		if ((myindex != "") && (form.selectrmenu.options[myindex].value != "")) {
			var mypage = form.selectrmenu.options[myindex].value;
			var tmp = window.open("http://www.animeetscom.org/mypage.asp?page=" + mypage,"animeetscom","");
			tmp.focus();
		}
	}

 function showSub(subMenu){
		divSub = document.getElementById("subMenu"+subMenu);
		AParent = document.getElementById("menu"+subMenu);
		divSub.style.left = getOffSetLeft(AParent);
		divSub.style.visibility="visible";
		//AParent.style.backgroundColor = "#66668E";
		//AParent.style.color =  "#FFFFFF";
		//AParent.style.fontWeight = "bold";
 }
 function hideSub(subMenu){
		divsub = document.getElementById("subMenu"+subMenu);
		AParent = document.getElementById("menu"+subMenu);
		divsub.style.visibility="hidden";
		//AParent.style.backgroundColor =  "#D5D2E6"
		//AParent.style.color =  "#01568A";
		//AParent.style.border =  "1px solid #01568A";
		//AParent.style.fontWeight = "normal";
 }
 function getOffSetLeft(object){
	 var offSet
	 offSet = object.offsetLeft;
	 if (object.offsetParent != null ){
			offSet += getOffSetLeft(object.offsetParent);
	 }
	 return offSet;
 }


 // product menu *******************************************************************************************
	function changeStatus(strSub,level){
		var divSub

		divSub = document.getElementById('sub'+strSub);
		if ( divSub!=null ) {
				if (divSub.style.display == 'inline'){
					divSub.style.display='none';
				}
				else{
					divSub.style.display='inline';
				}
	 	}
	}

function Page_Print(intPID){
  if (window.print)
  {
    this.focus();
    setTimeout('window.print();',200);
  } else
    {
      alert("Toets 'Ctrl+p' op uw toetsenbord om te printen.");
    }
}

function openLocatieRNM() {
	window.open("http://www.reactnewmedia.nl/locatieRNM.html", "locatieNetWindow", "width=600, height=486");
}

function getObject(parName, parWidth, parHeight, parVersion) {
	/*****************************************************************
	parName:   volledige path & filename vanaf de file waarin het object wordt geplaatst
	parWidth:  Breedte van het object (bijv "1024")
	parHeight: Hoogte van het object	(bijv "768")
	parVersion: versie van het object (bijv "6")								10/10/2006 14:27
	*****************************************************************/
	var x
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+parVersion+',0,0,0" width="'+parWidth+'" height="'+parHeight+'" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain"/>');
	document.write('<param name="movie" value="'+parName+'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="play" value="true" />');
	document.write('<param name="wmode" value="transparent" />');
//	document.write('<param name="bgcolor" value="#ffffff" />');
//	document.write('<embed src="'+parName+'" quality="high" bgcolor="#ffffff" width="'+parWidth+'" height="'+parHeight+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('<embed src="'+parName+'" quality="high" width="'+parWidth+'" height="'+parHeight+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"  play="true" wmode="transparent"/>');
	document.write('</object>');
	return x;
}  // getObject()

