    <!--
    var thumpImg = new Image();
    var thumpInt;
    var largeImagePath = '/images/products/large/'
		
		function popUpImage(){
			 var img = new Image();
			 img.onload = openImageWin;
			 img.src = largeImageUrl;
		}
		
		 function openImageWin () {
			var str = "";
			if (parseInt(navigator.appVersion) > 3)
				str += ",left=" + (screen.width - this.width) / 2 + ",top=" + parseInt((screen.height - this.height) / 2);
				//orig:   var thisWin = open(this.src, 'windowName', 'width=' + this.width + ',height=' + this.height + str);
			  var thisWin = open('', 'windowName', 'width=' + this.width + ',height=' + this.height + str);
			  thisWin.document.writeln(
				'<html><head><title>' + productName + '</title></head>'
				+'<body bgcolor=white onLoad="self.focus()">'
				+'<center><img src=' + this.src + '></center>'
				+'</body></html>')
				thisWin.document.close() //on purpose :-)
		  }

    function checkImg(imgName) {
	    if (thumpImg.readyState == "complete" || thumpImg.readyState == 4) { 
		    document.imgProduct.src = imgName
		    clearInterval(thumpInt);
	    }
    }

    function hidePop() {
	    if (document.all) {
		    clearInterval(thumpInt);
	    }
    }

    function showPop(imgName) {
	    thumpImg.src = imgName;
	    thumpInt = window.setInterval("checkImg('" + imgName + "')",200);
	    imgWidth = thumpImg.width;
    }

    function positionPop(imgPathName, imgName) {
			largeImageUrl = largeImagePath + imgName;
			document.imgProduct.src = imgPathName;
			imgWidth = document.imgProduct;
    }

    //-->
    
    		var globalMouseX;
		var globalMouseY;
		var workingElement;
		
		function showMessage(myElement, closeAfter)
		{
			eval("document.getElementById('" + myElement + "').style.top =" + globalMouseY);
			eval("document.getElementById('" + myElement + "').style.left =" + (globalMouseX-200));
			eval("document.getElementById('" + myElement + "').style.display = 'inline'");
			workingElement = myElement;
			setTimeout(closeWindow,closeAfter);
		}
		
		function closeWindow()
		{
			eval("document.getElementById('" + workingElement + "').style.display = 'none'");
		}



		function captureMouseXY(evt)
		{	
				var e = (window.event) ? window.event : evt;
				globalMouseX = mouseX(e);
				globalMouseY = mouseY(e);
		}
		
		function removeTags(myHTML)
		{
		myHTML =  myHTML.replace(/\<\s*form[^\>]*[\s ]*\>/,'');
		myHTML =  myHTML.replace(/\<\s*\/s*form[^\>]*[\s ]*\>/,'');
		myHTML =  myHTML.replace(/\<\s*input[^\>]*[\s ]*\>/,'');
		return myHTML;
		}
		
		function mouseX(evt) {
		if (evt.pageX) return evt.pageX;
		else if (evt.clientX)
		return evt.clientX + (document.documentElement.scrollLeft ?
		document.documentElement.scrollLeft :
		document.body.scrollLeft);
		else return null;
		}
		
		function mouseY(evt) {
		if (evt.pageY) return evt.pageY;
		else if (evt.clientY)
		return evt.clientY + (document.documentElement.scrollTop ?
		document.documentElement.scrollTop :
		document.body.scrollTop);
		else return null;
		}		

		function AntalVarer( myString, delim1, delim2 ) {
			var substr1 = myString.split( delim1 );
			if ( substr1 == myString ) return -1;     // delim1 not found
			var substr2 = substr1[1].split( delim2 );
			var len1 = substr1[0].length + delim1.length;
			var len2 = substr2[0].length;
			var antal = myString.substring( len1, len1+len2 ).split(',').length;
			return antal;
			//return myString.substring( len1, len1+len2 )
		}

        function UpdateKonkurrentPrisCounter()
        {
            pausecomp(500);
            //var minCount = document.getElementById("DIVPrisCounter").innerHTML;
            document.getElementById("DIVPrisCounter").innerHTML = AntalVarer( document.cookie, 'KonkurrentPriser=', ';' );               
        }
        
        function UpdatePrissammenligningCounter()
        {
            pausecomp(500);
            //var minCount = document.getElementById("DIVPrisCounter").innerHTML;
            document.getElementById("DIVCompareCounter").innerHTML = AntalVarer( document.cookie, 'Prissammenligning=', ';' );               
        }
        
        function UpdateMineVarerCounter()
        {
            pausecomp(500);
            //var minCount = document.getElementById("DIVPrisCounter").innerHTML;
            document.getElementById("DIVMinCounter").innerHTML = AntalVarer( document.cookie, 'MineVarer=', ';' );               
        }

        function UpdateSystembolagetCounter()
        {
            if (document.getElementById("DIVSystemCounter") != null)
            {
                pausecomp(500);
                //var minCount = document.getElementById("DIVPrisCounter").innerHTML;
                
                document.getElementById("DIVSystemCounter").innerHTML = AntalVarer( document.cookie, 'Systembolaget=', ';' );
            }
        }

        function pausecomp(millis) 
        {
            var date = new Date();
            var curDate = null;

            do { curDate = new Date(); } 
            while(curDate-date < millis);
        } 


<!-- Start WPstat code -->
	var img = new Image();
	img.src = "http://wp.statistik.jajja.com/wp_stat.php?pid=140175001&page=" + escape(document.location.href) + "&referer=" + escape(document.referrer);
<!-- End WPstat code -->



/*
Alt omkring Ajax funktioner på de forskellige sider.
*/



			//Ajax ----
			var url = "/ajax/AddFavorites.aspx?productid=";
			var urlMinSide = "/ajax/AddToMinSide.aspx?productid=";
			var urlBuy = "/ajax/AddToBasket.aspx?productid=";
			var urlTopBasketContent = "/ajax/TopBasketContent.aspx";
			var quantity;
		
			function addToBasket(myExtProductId, myQuantity)
			{
			    RealAddToBasket(myExtProductId, myQuantity);
			    populateBasketContent();
			/*var extProductID  = myExtProductId;
			quantity = eval("document.getElementById(myQuantity).value");
						
			if (!isWorking && http)
				{
				http.open("GET", urlBuy + escape(extProductID) + '&qty=' + escape(quantity) + '&act=ajax' , true);
				http.onreadystatechange = handleBuyHttpResponse;
				http.send(null);
				
				
				
				//UpdateKonkurrentPrisCounter();
				//UpdatePrissammenligningCounter();
				//UpdateSystembolagetCounter();
				}			
			*/
			}
			
			function RealAddToBasket(myExtProductId, myQuantity)
			{
			var extProductID  = myExtProductId;
			quantity = eval("document.getElementById(myQuantity).value");
						
			if (!isWorking && http)
				{
				http.open("GET", urlBuy + escape(extProductID) + '&qty=' + escape(quantity) + '&act=ajax' , true);
				http.onreadystatechange = handleBuyHttpResponse;
				http.send(null);
				
				
				
				//UpdateKonkurrentPrisCounter();
				//UpdatePrissammenligningCounter();
				//UpdateSystembolagetCounter();
				}			
			}
			
			function populateBasketContent()
			{
			    if (!isWorking && http_2)
			    {
			        http_2.open("GET", urlTopBasketContent, true);
			        http_2.onreadystatechange = handleBasketContent;
			        http_2.send(null);			        
			    }
			    
			}
			
			function handleBasketContent()
			{
		        if (http_2.readyState == 4) 
			    {
			        if (http_2.responseText.indexOf('invalid') == -1) 
			        {
				        var myBasketElement = document.getElementById("DIVtopBasketContent"); 
				        var myHTML = http_2.responseText;
				        myHTML = removeTags(myHTML);
				        myBasketElement.innerHTML = myHTML;
					    isWorking = false;
			        }
			    }
			}
			
			function handleBuyHttpResponse() 
			{
			if (http.readyState == 4) 
				{
					if (http.responseText.indexOf('invalid') == -1) 
					{
						showMessage('DIVAdded2Basket',1000);
						//var myBasketElement = document.getElementById("DIVBasketContent"); 
						var myBasketElement = document.getElementById("DIVtopBasket"); 
						var myHTML = http.responseText;
 						myHTML = removeTags(myHTML);
						myBasketElement.innerHTML = myHTML;
						
						//var currCount = document.getElementById("DIVBasketCounter").innerHTML;
						//document.getElementById("DIVBasketCounter").innerHTML = parseInt(currCount) + parseInt(quantity);
						
						isWorking = false;
					}
				}
			}
			
			function addToMinSide(myExtProductId, StoreID)
			{
			var extProductID  = myExtProductId;
			
			if (!isWorking && http)
				{
				http.open("GET", urlMinSide + escape(extProductID) + '&listid=ajax' + '&storeid=' + escape(StoreID) , true);
				http.onreadystatechange = handleMinSideHttpResponse;
				http.send(null);
				//UpdateKonkurrentPrisCounter();
				//UpdatePrissammenligningCounter();
				//UpdateSystembolagetCounter();
				}
			}
			
			function handleMinSideHttpResponse() 
			{
			if (http.readyState == 4) 
				{
					if (http.responseText.indexOf('invalid') == -1) 
					{
						var xmlDocument = http.responseXML; 
						var statuscode = xmlDocument.getElementsByTagName('code').item(0).firstChild.data;

						if(statuscode == 'ok')
							{
							showMessage('DIVMinSideAdded',1000);
							//var minCount = document.getElementById("DIVMinCounter").innerHTML;
							//document.getElementById("DIVMinCounter").innerHTML = AntalVarer( document.cookie, 'MineVarer=', ';' );						
							}
						else
							{
							showMessage('DIVMinSideNotAdded',1000);							
							}
						isWorking = false;
					}
				}
			}
			
			function addToFavorites(myExtProductId)
			{
			var extProductID  = myExtProductId;
			
			if (!isWorking && http)
				{
				http.open("GET", url + escape(extProductID) + '&listid=ajax' , true);
				http.onreadystatechange = handleFavoriteHttpResponse;
				http.send(null);
				//UpdateKonkurrentPrisCounter();
				//UpdatePrissammenligningCounter();
				//UpdateSystembolagetCounter();
				}
			}
			
			function handleFavoriteHttpResponse() 
			{
			if (http.readyState == 4) 
				{
					if (http.responseText.indexOf('invalid') == -1) 
					{
						//var xmlDocument = http.responseXML; 
						//var counter = xmlDocument.getElementsByTagName('counter').item(0).firstChild.data;
						
						showMessage('DIVFavAdded',1000);
						//document.getElementById("DIVFavCounter").innerHTML = counter;
						
						isWorking = false;
					}
				}
			}
			
			
			function myMouseMoveFireFox(evt)
			{
					var e = (window.event) ? window.event : evt;
					document.getElementById("spFavorites").style.top=mouseY(e)+10;document.getElementById("spFavorites").style.left=mouseX(e)+10;
			}
			function resetWindows()
			{
				//document.getElementById("spFavorites").style.display='none';
				//document.getElementById("spFavoritesSelection").style.display='inline';
				document.getElementById("spFavoritesWorking").style.display='none';
			}
			
			function handleHttpResponse() {
			if (http.readyState == 4) {
				if (http.responseText.indexOf("invalid") == -1) {
		
				var xmlDocument = http.responseXML; 
				var statuscode = xmlDocument.getElementsByTagName("code").item(0).firstChild.data;

				if(statuscode == "ok")
					{
					document.getElementById("spFavoritesWorking").innerHTML = "Produktet er nu tilf&oslash;jet";
					setTimeout(resetWindows,1000);
					}
				else
					{
					document.getElementById("spFavoritesWorking").innerHTML = "Produktet kunne <B>ikke</b> tilf&oslash;jes";
					setTimeout(resetWindows,2000);
					}
				isWorking = false;
				}
			}
			}
			var isWorking = false;
			
			var http = getHTTPObject(); // We create the HTTP Object
	
			function getHTTPObject() {
			var xmlhttp;
			/*@cc_on
			@if (@_jscript_version >= 5)
				try {
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
				} catch (e) {
				try {
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (E) {
					xmlhttp = false;
				}
				}
			@else
			xmlhttp = false;
			@end @*/
			if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
				try {
				xmlhttp = new XMLHttpRequest();
				} catch (e) {
				xmlhttp = false;
				}
			}
			return xmlhttp;
			}
			
			var http_2 = getHTTPObject_2(); // We create the HTTP Object
			
			function getHTTPObject_2() {
			var xmlhttp;
			/*@cc_on
			@if (@_jscript_version >= 5)
				try {
				xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
				} catch (e) {
				try {
					xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
				} catch (E) {
					xmlhttp = false;
				}
				}
			@else
			xmlhttp = false;
			@end @*/
			if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
				try {
				xmlhttp = new XMLHttpRequest();
				} catch (e) {
				xmlhttp = false;
				}
			}
			return xmlhttp;
			}
			//DIVMinSideAdded

            
/* Her er funktioner til Video (popup) */

var imgWait = new Image();
imgWait.src='/images/layout/waiting.gif';

function GetRequestObject()
{
    var xmlHttp;
    try
    {  // Firefox, Opera 8.0+, Safari  etc
        xmlHttp= new XMLHttpRequest();  
    }
    catch (e)
    {  // Internet Explorer  
        try
        {
            xmlHttp= new ActiveXObject("Msxml2.XMLHTTP");    
        }
        catch (e)
        {
            try
            {
                xmlHttp= new ActiveXObject("Microsoft.XMLHTTP");      
            }
            catch (e)
            {      
                xmlHttp=null;
            }    
        }  
    }
    return xmlHttp;
}
/*function openWizardPreview(o, name, desc)*/
function openWizardPreview(reqParms, name, width, height)
{
    if ((width == null) | (width.length == 0))
    {
        width = 569;
    }
    if ((height == null) | (height.length == 0))
    {
        height = 375;
    }
    document.getElementById('WizardPreviewContent').innerHTML='';
    document.getElementById('WizardPreviewContent').style.textAlign='center';
    document.getElementById('WizardPreviewContent').appendChild(imgWait);
    document.getElementById('wizardPreviewBackground').style.visibility='visible';
    document.getElementById('wizardPreviewBackground').style.display='block';
    var divHeight = xDocHeight(); //2740;
    document.getElementById('wizardPreviewBackground').style.height=divHeight+'px';
    //document.getElementById('WizardPreviewContent').innerHTML=
    var strContent = 
    AC_FL_RunContent(
                    'codebase',
                    'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
                    'width', escape(width),
                    'height', escape(height),
                    'src', '/_upload/andersandjan/' + escape(reqParms),
                    'quality', 'high',
                    'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                    'align', 'middle',
                    'play', 'true',
                    'loop', 'true',
                    'scale', 'showall',
                    'wmode', 'transparent',
                    'devicefont', 'false',
                    'id', '' + escape(reqParms),
                    'bgcolor', '#ffffff',
                    'name', 'clip1',
                    'menu', 'true',
                    'allowFullScreen', 'false',
                    'movie', '/_upload/andersandjan/' + escape(reqParms),
                    'salign', ''
                    ); //end AC code
                    
    ChangeContent('WizardPreviewContent', strContent);
    
    document.getElementById('wizardPreviewPane').style.visibility='visible';
    document.getElementById('wizardPreviewPane').style.display='block';
    document.getElementById('wizardPreviewName').innerHTML=name;   
    /*var xmlHttp = GetRequestObject();
    if (xmlHttp)
    {
        xmlHttp.onreadystatechange=function()
        {
            if(xmlHttp.readyState==4)
            {
                document.getElementById('WizardPreviewContent').style.textAlign='left';
                document.getElementById('WizardPreviewContent').innerHTML='';
                
                if (xmlHttp.status==200)
                {
                    document.getElementById('WizardPreviewContent').innerHTML=xmlHttp.responseText;                    
                }
                else
                {
                    document.getElementById('WizardPreviewContent').innerHTML='http error ' + xmlHttp.status
                }                    
            }
        }
        
        xmlHttp.open('GET','video.aspx' + reqParms,true);
        xmlHttp.send(null);
        
        document.getElementById('wizardPreviewPane').style.visibility='visible';
        document.getElementById('wizardPreviewPane').style.display='block';
        document.getElementById('wizardPreviewName').innerHTML=name;   
                 
    }
    */
}

var type = "IE";        

function ChangeContent(id, str) { 

BrowserSniffer(); 

 if (type=="IE") {
         document.all[id].innerHTML = str; 
 } 
 if (type=="NN") { 
         document.layers[id].document.open(); 
         document.layers[id].document.write(str); 
         document.layers[id].document.close(); 
 }
 if (type=="MO" || type=="OP") { 
         document.getElementById(id).innerHTML = str; 
 } 
} 

 
function BrowserSniffer() { 
 if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";         
 else if (document.all) type="IE";                                                                                                  
 else if (document.layers) type="NN";                                                                                        
 else if (!document.all && document.getElementById) type="MO";                                               
 else type = "IE";              
}

function closeWizardPreview()
{
    document.getElementById('wizardPreviewBackground').style.visibility='hidden';
    document.getElementById('wizardPreviewPane').style.visibility='hidden';
    document.getElementById('wizardPreviewBackground').style.display='none';
    document.getElementById('wizardPreviewPane').style.display='none';
    ChangeContent('WizardPreviewContent', '');
}



// xDocSize r1, Copyright 2007 Michael Foster (Cross-Browser.com)
// Part of X, a Cross-Browser Javascript Library, Distributed under the terms of the GNU LGPL
function xDocHeight()
{
  var b=document.body;
  var e=document.documentElement;
  var esh=0;
  var eoh=0;
  var bsh=0;
  var boh=0;
  if (e) {
    esh = e.scrollHeight;
    eoh = e.offsetHeight;
  }
  if (b) {
    bsh = b.scrollHeight;
    boh = b.offsetHeight;
  }
//  alert('compatMode: ' + document.compatMode + '\n\ndocumentElement.scrollHeight: ' + esh + '\ndocumentElement.offsetHeight: ' + eoh + '\nbody.scrollHeight: ' + bsh + '\nbody.offsetHeight: ' + boh + '\n\ndocumentElement.scrollWidth: ' + esw + '\ndocumentElement.offsetWidth: ' + eow + '\nbody.scrollWidth: ' + bsw + '\nbody.offsetWidth: ' + bow);
  return Math.max(esh,eoh,bsh,boh);
}



function xDocSize()
{
  var b=document.body, e=document.documentElement;
  var esw=0, eow=0, bsw=0, bow=0, esh=0, eoh=0, bsh=0, boh=0;
  if (e) {
    esw = e.scrollWidth;
    eow = e.offsetWidth;
    esh = e.scrollHeight;
    eoh = e.offsetHeight;
  }
  if (b) {
    bsw = b.scrollWidth;
    bow = b.offsetWidth;
    bsh = b.scrollHeight;
    boh = b.offsetHeight;
  }
//  alert('compatMode: ' + document.compatMode + '\n\ndocumentElement.scrollHeight: ' + esh + '\ndocumentElement.offsetHeight: ' + eoh + '\nbody.scrollHeight: ' + bsh + '\nbody.offsetHeight: ' + boh + '\n\ndocumentElement.scrollWidth: ' + esw + '\ndocumentElement.offsetWidth: ' + eow + '\nbody.scrollWidth: ' + bsw + '\nbody.offsetWidth: ' + bow);
  return {w:Math.max(esw,eow,bsw,bow),h:Math.max(esh,eoh,bsh,boh)};
}
