function openSlot(page){
		
	var winl = (screen.width - 981) / 2;
	var wint = (screen.height - 688) / 2;
	
	winprops = 'height=688,width=981,top='+wint+',left='+winl+',scrollbars=no,resizable';
	win = window.open(page, 'slotpopup', winprops);
	
	if(parseInt(navigator.appVersion) >= 4){
		win.window.focus();
	}
}

function ConvertPopups(){
	// Convert all rel links to slideshow links
	var Items = document.getElementsByTagName('A');
	var ItemsCount = Items.length;
	var i;
	
	for(i=0;i<ItemsCount;i+=1){
		if(Items[i].className=='slotpopup'){

			// Get xml path
			var popuppath = Items[i].getAttribute("href");
			
			// Set new href
//			Items[i].setAttribute("href", "#");
			
			Items[i].onclick = function(){
				openSlot(this.href);
				return false;
			}
		}
	}
}
onload=init;
function init() {
	ConvertPopups();
	with ( document ) {
		for ( var i=0; i<images.length; i+=1 ) {
			with ( images[i] ) {
				if (className!="noem") {
					style.width=(width*0.0626)+"em";
					style.height=(height*0.0626)+"em";
				}
			}
		}
	}
} // init
function SearchFocus(obj, StandardText) {
	if(obj.value==' '+StandardText) obj.value='';
	obj.style.color="White";
} // SearchEnabled
function SearchBlur(obj, StandardText) {
	if(obj.value=='') {
		obj.value=' '+StandardText;
		obj.style.color="";
	}
} // SearchDisabled



  function PopUp(mypage, myname, w, h, scroll){
		
	  var winl = (screen.width - w) / 2;
	  var wint = (screen.height - h) / 2;
	  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';
	  win = window.open(mypage, myname, winprops);
	  
	  if(parseInt(navigator.appVersion) >= 4){
		win.window.focus();
	  }
  }


