/*
  --------------------------------------
  |          Basic JavaScript          |
  --------------------------------------
*/

<!--

// Netscape Resize fix
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//--------------------------------------------------------------------------------------------------


// Fix ugly links in IE
function fixUglyIE(){
for (a in document.links) document.links[a].onfocus = document.links[a].blur;
}if (document.all){
document.onmousedown = fixUglyIE;
}
//--------------------------------------------------------------------------------------------------


// PopUp without scroll
function popup(URL,width,height){
if (parseInt(navigator.appVersion) >= 3){
if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)<5){
var tools = new Packages.java.awt.Toolkit.getDefaultToolkit();
screen=tools.getScreenSize();
}
x = screen.width;
y = screen.height;
}
window.open(URL,"dummy","top=" + parseInt(y/2-height/2-16) + ",left=" + parseInt(x/2-width/2-5) + ",width=" + width + ",height=" + height);
}


//open window form Buyit-shop
function shoplink(URL)
{
  	topPos=(screen.availHeight/2)-270
	leftPos=(screen.availWidth/2)-337
  	if (navigator.appName=="Netscape")
  	{
		window.open(URL,"","screenY="+topPos+",screenX="+leftPos+",width=675,height=500,resizable=no,scrollbars=no,toolbar=no,statusbar=no");
  	}else
  	{
	 	window.open(URL,"","top="+topPos+",left="+leftPos+",width=675,height=500,resizable=no,scrollbars=no,toolbar=no,statusbar=no");
  	}

}
// -->