
// Dokumentsperre

//document.oncontextmenu = new Function("return false;");
//document.ondragstart = new Function("return false;");
//document.onselectstart = new Function("return false;");


// FRAMEKILLER
//if(top!=self) top.location=self.location;


function preloadImages() 
{
	if (document.images) {
		  var imgFiles = preloadImages.arguments;
		  var preloadArray = new Array();
		  for (var i=0; i<imgFiles.length; i++) {
			preloadArray[i] = new Image;
			preloadArray[i].src = imgFiles[i];
		 }
	}
}


function pop()
{
	width	= 600; height	= 420;
	options = "toolbar=no,scrollbars=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,resizable=no,width="+width+",height="+height;
	popup	= window.open("./produkte/script.php","SCRIPT",options);
	if(document.all) {
		x = (screen.availWidth - width) / 2
		y = (screen.availHeight - height) / 2
		popup.moveTo(x,y)
	}
	popup.focus();
}



function unipopup(url,name,w,h,options)
{
	width	= 600; if(w){ width = w; };
	height	= 420; if(h){ height = h; };
	wname = "POPUP";if(name){ wname = name; };
	options = "toolbar=no,scrollbars=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,resizable=no,width="+width+",height="+height+","+options;

	unipop	= window.open(url,wname,options);
	if(document.all) {
		x = (screen.availWidth - width) / 2
		y = (screen.availHeight - height) / 2
		if(x < 1) { x = 1}; if(y < 1) { y = 1};
		unipop.moveTo(x,y)
	}
	unipop.focus();

}


function setpicture(imgpath,picsrc,num){
	if(document.images)
	{
		document.images["prodpic"].src = imgpath+picsrc;
		for(i=0; i<10; i++){
			if(document.images["dig"+i]){
				farbe = "b"; if(i==num){ farbe = "r"; };
				document.images["dig"+i].src = "/images/produkte/dig_"+farbe+"_"+ (i+1) +".gif";
			};
		}
	};												
}

function Site2Favorite() {
	if(window.external){
		window.external.AddFavorite(location.href,document.title);
	} else {
		Alert("Drücken Sie folgende Tastenkombinationen: Strg + D");
	};
}
