Xoffset=-10;
Yoffset=20;
var nav,old,iex=(document.all),yyy=-1000;
if(navigator.appName=="Netscape"){(document.layers)?nav=true:old=true;}
if(!old){
var skn=(nav)?document.dek:dek.style;
if(nav)document.captureEvents(Event.MOUSEMOVE);
document.onmousemove=get_mouse;
}

function get_mouse(e){
var x=(nav)?e.pageX:event.x+document.body.scrollLeft;
if (x < screen.width ){
skn.left=x+Xoffset;
}
var y=(nav)?e.pageY:event.y+document.body.scrollTop;
skn.top=y+yyy;
}
function kill(){
	//navigator.appName=="Netscape" || 
	if (navigator.appName=="Microsoft Internet Explorer") {
		popup("/imgs/others/clear.gif","")
		if(!old){		
			yyy=-1000;skn.visibility="hidden";
		}
	}
}

//Ö÷º¯Êý
function popup(img,desc){
	//alert(navigator.appName);
	//navigator.appName=="Netscape" || 
	if (navigator.appName=="Microsoft Internet Explorer") {
		  foto1= new Image();
		  foto1.src=(img);
		  Controlla(img,desc);
	}
}

function popupWin(urlType,instr) {
	
	text =  '<html>\n<head>\n<title>Pop Window</title>\n<body bgcolor=#FFFFCC>\n';
	text += '<center>\n';
	text += '<table border=0 cellspacing=0 cellpadding=3 width=100%><tr><td><span style="font-family: Arial; font-size:12px;">';
	text += instr;
	text += '</span></td></tr><tr><td align=center><input type=button name=close onclick="window.close();" value="close window">';
	text += '</td></tr></table>';
	text += '</center>\n</body>\n</html>\n';
//	alert(text);
	w = 350;
	h = 100;
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=Yes,resizable=No';
	newWindow = window.open(urlType + '/scripts/null.asp','newWin',winprops);
	newWindow.document.write(text);
}

//
function Controlla(img,desc){
  if((foto1.width!=0)&&(foto1.height!=0)){
    largh=foto1.width+2;
    altez=foto1.height+2;
	if (desc != "") {
		largh += 100;	
	}
    viewFoto(img,desc);
  }
  else{
    largh=100;
    altez=100;
    viewFoto2();
  }
}
function viewFoto(img,desc){
  var content
  	if (img != "/imgs/others/clear.gif") {	
		content = "<table cellpadding=2 bgcolor=#ffffff border=0 style='border:1px solid #000000;position:relative;left:-20;z-index:20;visibility:visible;top:"+(0-altez-50)+"' width="+largh+" height="+altez+" cellspacing=0 cellpadding=0><TR><TD align=center bgcolor=#ffffff colspan=3><img src="+img+"></TD>";
	} else {
		content = "<table cellpadding=2 bgcolor=#FFFFCC border=0 style='border:1px solid #000000;position:relative;top:-20;left:20;z-index:20;visibility:visible;' width="+300+" height="+altez+" cellspacing=0 cellpadding=0><TR>";
	}
	if (desc != "") {
		content += "<TD valign=top><SPAN class=adDescription><FONT SIZE=-3>"+desc+"</FONT></SPAN></TD></TR>";
	} else {
		content += "</TR></TABLE>";
	}
if(old){alert(img);return;}
else{yyy=Yoffset;
 if(nav){skn.document.write(content);skn.document.close();skn.visibility="visible"}
 if(iex){document.all("dek").innerHTML=content;skn.visibility="visible"}
}
}
function viewFoto2(){
  var content="";
if(old){alert(img);return;}
else{yyy=Yoffset;
 if(nav){skn.document.write(content);skn.document.close();skn.visibility="visible"}
 if(iex){document.all("dek").innerHTML=content;skn.visibility="visible"}
}
}

