// JavaScript Document
function openPictureWindow(imageType,imageName,imageWidth,imageHeight,alt,posLeft,posTop) {  // v4.01
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",scrollbars=no,left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	if (imageType == "swf"){
	newWindow.document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('<param name=movie value=\"'+imageName+'\"><param name=quality value=high>');
	newWindow.document.write('<embed src=\"'+imageName+'\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"'+imageWidth+'\" height=\"'+imageHeight+'\">');
	newWindow.document.write('</embed></object>');	}else{
	newWindow.document.write('<img src=\"'+imageName+'\" width='+imageWidth+' height='+imageHeight+' alt=\"'+alt+'\">'); 	}
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function beskrivning(artNum, name, size, color  ){
	var content = "<table align=left cellpadding='2' cellspacing='1'><tr><td align='left'>"
	content += "<b> Namn:</b></td>" 
	content += "<td>" + name  + "</td>";
	content += "<td width='5'></td>"	
	content += "<td align='left'><b>Art. Num:</b></td>" 
	content += "<td align='left'>" + artNum + "</td></tr>";
	
	
	content += "<tr><td align='left'><b>Färg:</b></td>" 
	content += "<td align='left'>" + color + "</td>";
	content += "<td width='5'></td>"
	content += "<td align='left'><b>Size:</b></td>" 
	content +=  "<td align='left'>" + size + "</td></tr>";
	content += "<tr><td align='left' colspan='3'><a href='eshop.htm'>Köpa produkten.</a></td></tr></table><br>";
	
	beskrivning3.innerHTML = content;
}

//popup
//<script type="text/javascript">

<!--

// this variable names the current window (for using the popUp as a remote)

window.name = "currentWindowName";

// this function opens the pop-up window

var newWin;

function popUp(page, name, details) {
newWin=window.open(page, name, details);
newWin.focus();
return false;
}

/* Use this in the A HREF tag:

Standard (nothing but the file):

<a href="images/image.jpg" onclick="return popUp('images/image.jpg', 'imageName', 'width=xxx,height=xxx,resizable=yes')"></a>

Custom (all the options, remove what you don't want):

<a href="images/image.jpg" onclick="return popUp('images/image.jpg', 'imageName', 'width = xxx,height = xxx,directories = yes,location = yes,menubar = yes,resizable = yes,scrollbars = yes,status = yes,toolbar = yes,screenX = xxx,screenY = xxx,top = xxx,left = xxx')"></a>

By default, all options are off. To enable an option, therefore, you must use option=yes. All options are enabled in the custom example. Replace "yes" with "no", or remove the option to disable it. "xxx" should be replaced with pixel values. screenX, screenY, top and left position the window on the screen, and you need both to have it work in IE and Netscape

You can use .html files or images, same as usual with an <a> tag.

*/

//-->


