/* JavaScript for Antec-Online Products */
/* Author: Andi Kuhn, eMail: a.kuhn@andi.com */
/* Version: 01, date: 01-09-12 */

// detect uncapable browsers:
agent = navigator.userAgent
browserVer = 2
if (agent.indexOf("a/4",6) == 6) browserVer = 1
else {
	if (agent.indexOf("a/3",6) == -1) browserVer = 2
	else browserVer = 1
}
// defined later, needed to show big picture of product
product_number = ""

// executed when page is loaded:
function initiate(){
}

// open new window with big picture of product:
function show_big_picture(product_number_to_show){
	Link = product_number_to_show + "/big_picture.htm"
	window_big_picture = window.open(Link,"Zoom","width=600,height=460");
	window_big_picture.moveTo(50,50);
}

// open new window with big picture of car:
function show_big_gallery(car_id){
	Link = car_id + "/big_gallery.htm"
	window_big_gallery = window.open(Link,"Zoom","width=600,height=500");
	window_big_gallery.moveTo(50,50);
}


// Function ShowBigVideo																				
function show_big_video(path_to_video, width, height, screenX, screenY){
	if (!width) 	width 	= 640;
	if (!height) 	height 	= 480;
	if (!screenX) 	screenX = 50;
	if (!screenY) 	screenY = 50;
				
	// IE Fenster oeffnen 
	if (document.layers) {
		window.open(path_to_video, "Video", "width="+width+",height="+height+",screenX="+screenX+",screenY="+screenY+",resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no");
	}
	// NS Fenster oeffnen 
	if (document.getElementById) {
		window.open(path_to_video, "Video", "width="+width+",height="+height+",screenX="+screenX+",screenY="+screenY+",resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no,location=no,dependent=yes");
	}
}
//																										


