/* common js functions */

function SNI_openProdWindow(theURL,winName,features) { //v1.0
// URL ,'detail','scrollbars=yes,resizable=yes,width=525,height=525'
//  window.open(theURL,winName,features);
 window.open(theURL,'detail','scrollbars=yes,resizable=yes,width=525,height=525');
}

function SNI_dStatus(text) { //PK v1.0  default status bar text
	if (!text) {
	window.defaultStatus=document.title;
	} else {
		window.defaultStatus=text ;
	}
}
//window.onload=PK_dStatus();

function SNI_displayHideObj() { //PK v1.0 modified from MM_showHidObj()
  var i,p,v,obj,args=SNI_displayHideObj.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'block':(v=='hide')?'none':v; }
    obj.display=v; }
}

function SNI_setFocus(obj) { //PK v1.0 set focus to an object
	if (!obj) {
		return false;
	} else {
		document.getElementById(obj).focus();
		return true;
	}
}
//window.onload=PK_setFocus('search-form') ;

function SNI_swapProd(obj,string) {
	// do some shit here
	alert(obj);
	alert(string);
	var msg = document.getElementById(obj);
		alert('error'+msg);		
		msg.h3.a.text.value='borked';
}


function w3c_targetBlank (url) {  
blankWin = window.open(url,'_blank','menubar=yes,toolbar=yes,location=yes,directories=yes,fullscreen=no,titlebar=yes,hotkeys=yes,alwayslowered=yes,status=yes,scrollbars=yes,resizable=yes,dependent=yes,channelmode=yes,alwaysraised=yes,zlock=yes,width=,height=,left=0,screenX=0,top=0,screenY=0');
}


window.onload= function(){
    /* pass the function the id of the top level UL */
    /* remove one, when only using one menu */
    //activateMenu('nav'); 
    //activateMenu('vertnav'); 
	SNI_dStatus();
	//SNI_setFocus('search-form') ;


}