function includeFlash(params, bgcolor, width, height)
{
    document.write('<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" WIDTH='+width+' HEIGHT='+height+'>\n');
    document.write('<PARAM NAME=movie VALUE="' + params + '">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE='+bgcolor+'>\n');
	document.write('<EMBED src="' + params + '" quality=high bgcolor='+bgcolor+' WIDTH='+width+' HEIGHT='+height+' allowScriptAccess=sameDomain TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">\n');
	document.write('</EMBED>\n');
    document.write('</OBJECT>\n');
 }

function showPOPUP(filename, w, h){
	if (document.all)
		var xMax = screen.width, yMax = screen.height-16;
	else
	{
		if (document.layers)
			var xMax = window.outerWidth, yMax = window.outerHeight;
		else
			var xMax = 800, yMax=600;
	}	
	//var w = 550;
	//var h = 400;
	var xOffset = (xMax - w)/2, yOffset = (yMax - h)/2;

	var pop = window.open(filename, '','width='+w+',height='+h+',screenX='+xOffset+',screenY='+yOffset+',top='+yOffset+',left='+xOffset+',menubar=0,toolbar=0,status=no,resizable=no,scrollbars=no');

}


 function openMeijels(){
	 var width, height;
	 var agt = navigator.userAgent.toLowerCase();
	 var isNetscape = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
	 var isMac = (navigator.appVersion.indexOf("Mac") != -1);
	 
	 width = 725;	//(screen.availWidth ? screen.availWidth : 800);
	 height = 500;	//(screen.availHeight ? screen.availHeight : 600);
	 
	 /*
	 height -= 10;
	 
	 if (isMac)
	  height -= 20;
	 else
	  width -= 10;
	  */

	 var url = "http://www.meijels.se/Products.asp?PageNumber=22&ProductCategory_Id=95";
	 var name = "Meijels";
	 
	 var winObj = window.open(url,name,"left=0,top=0,width=" + width + ",height=" + height + ",fullscreen=no, toolbar=yes, location=yes, status=yes, menubar=yes,scrollbars=yes, resizable=yes, copyhistory=yes");
	 if(winObj && isMac && winObj.moveTo && winObj.resizeTo) {
	  winObj.moveTo(0, 0);
	  winObj.resizeTo((width-10), height);
	 }
	 winObj.focus();
 }