function InsertFlash(movieURL){
	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="520" height="455" id="effekt_test_backup_2" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+ movieURL + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#547023" />');
	document.write('<param name="wmode" value="opaque">');
	document.write('<embed src="'+ movieURL + '" quality="high" width="520" height="455" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="opaque"/></embed>');
	document.write('</object>');
	}
	
function InsertFlashOverskrift(movieURL){
	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="520" height="69" id="effekt_test_backup_2" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+ movieURL + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#547023" />');
	document.write('<param name="wmode" value="opaque">');
	document.write('<embed src="'+ movieURL + '" quality="high" width="520" height="69" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="opaque"/></embed>');
	document.write('</object>');
	}	
	
	
	
	
function switchShortcut() {
	if (document.getElementById('shortcut').className == 'open') {
    document.getElementById('shortcut').className = 'closed';
	} else {
    document.getElementById('shortcut').className = 'open';
	}
}


function switchOverlay() {
	if (document.getElementById('overlay').className == 'hide') {
		document.getElementById('overlay').className = 'show';
		document.getElementById('productInfo').className = 'hide';
		document.getElementById('webshopCart').className = 'hide';
		document.getElementById('infoBoks').style.display = 'none';
		document.getElementById('breadCrumbs').className = 'hide';
	} else {
		document.getElementById('overlay').className = 'hide';
		document.getElementById('productInfo').className = 'show';
		document.getElementById('webshopCart').className = 'show';
		document.getElementById('infoBoks').style.display = 'block';
		document.getElementById('breadCrumbs').className = 'show';
	}
}

function gup( name ) {
  var regexS = "[\\?&]"+name+"=([^&#]*)";
  var regex = new RegExp( regexS );
  var tmpURL = window.location.href;
  var results = regex.exec( tmpURL );
  if( results == null )
    return "";
  else
    return results[1];
}

function InsertProduct(medium, large){
	
	var movieURL = document.getElementById('produktnummer').value;
	
	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="520" height="520" id="effekt_test_backup_2" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="Files/Billeder/flash/productbrowser.swf?medium='+ medium +'&large='+ large +'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<param name="wmode" value="opaque">');
	document.write('<embed src="Files/Billeder/flash/productbrowser.swf?medium='+ medium +'&large='+ large +'" quality="high" width="520" height="520" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="opaque"/></embed>');
	document.write('</object>');
	}
	
function InsertTextileInfo() {
	// Tjek om der overhovedet skal vises textilinfo	
		if (document.getElementById('GoreWindstopper').value == 'True') {
			var i = 1; }
		if (document.getElementById('Sportwool').value == 'True') {
			var i = 1; }
		if (document.getElementById('Yukon').value == 'True') {
			var i = 1; }
		if (document.getElementById('TactelAquator').value == 'True') {
			var i = 1; }
		if (document.getElementById('Lycra').value == 'True') {
			var i = 1; }
		if (document.getElementById('Polartec').value == 'True') {
			var i = 1; }
		if (document.getElementById('Flexfit').value == 'True') {
			var i = 1; }
		if (document.getElementById('GoreTex').value == 'True') {
			var i = 1; }
		if (document.getElementById('Stretch').value == 'True') {
			var i = 1; }
		if (document.getElementById('CoolMax').value == 'True') {
			var i = 1; }

	// Hvis textilinfo-feltet, hvis det er relevant
	if (i == 1) { document.getElementById('infoBoks').style.display = 'block';}
		else { document.getElementById('infoBoks').style.display = 'none'; }
		
	// Indsæt relevante textilinfo
		if (document.getElementById('GoreWindstopper').value == 'True') {
			document.write('<div id="TxtGoreWindstopper" ><p><strong>Gore Windstopper</strong></p><p>Gore Windstopper lining for absolute wind protection and outstanding breathability. Stay comfortable with fewer layers of clothing.</p><p>GORE Windstopper N2C an extremely breathable NextSkin fabric that offers great moisture management and absolute windprotection. Soft and light with a very nice touch.</p></div>'); }

		if (document.getElementById('Sportwool').value == 'True') {
			document.write('<div id="TxtSportwool" ><p><strong>Sportwool</strong></p><p>Sportwool contains Wool which contributes following benefits to garments: Efficient wicking structures, moving liquid sweat away from the body; Garments feel less "clammy" to skin during activity; Natural UV protection; Natural elasticity; Allows activewear garments to breathe naturally.</p></div>'); }

		if (document.getElementById('Yukon').value == 'True') {
			document.write('<div id="TxtYukon" ><p><strong>Yukon</strong></p><p>Yukon fleece has an excellent warmth to weight ratio compared to traditional fleece fabrics.</p><p>Good moisture transmission, excellent washability and extremely high colour fastness makes this product perfect for active outdoor wear.</p></div>'); }
		
		if (document.getElementById('TactelAquator').value == 'True') {
			document.write('<div id="TxtTactelAquator" ><p><strong>Tactel Aquator</strong></p><p>Tactel Aquator is a unique two sided fabric system designed to move moisture from the skin and allow natural evaporation from the outer layer.</p></div>'); }
		
		if (document.getElementById('Lycra').value == 'True') {
			document.write('<div id="TxtLycra" ><p><strong>Lycra</strong></p><p>Lycra fibers provide strength for comfort, shape, fit and freedom of movement.</p></div>'); }
		
		if (document.getElementById('Polartec').value == 'True') {
			document.write('<div id="TxtPolartec" ><p><strong>Polartec</strong></p><p>Polartec is four times more wind resistant than traditional fleece. Provides warmth without the weight and bulk of traditional insulation fabrics. Waterrepellent surface. Very breatheable and durable. Stay comfortable with fewer layers of clothing.</p></div>'); }
		
		if (document.getElementById('Flexfit').value == 'True') {
			document.write('<div id="TxtFlexfit" ><p><strong>Flexfit</strong></p><p>Flexfit is constructed with spandex throughout, a fiber that maintains comfort and shape every time your wear it. Flexfit will stay on your head after repeated wear.</p></div>'); }
		
		if (document.getElementById('GoreTex').value == 'True') {
			document.write('<div id="TxtGoreTex" ><p><strong>GORE TEX</strong></p><p>GORE-TEX outwear is the most durable waterproof, breathable and windproof outwear you can get.</p></div>'); }
		
		if (document.getElementById('Stretch').value == 'True') {
			document.write('<div id="TxtStretch" ><p><strong>Stretch</strong></p><p>Stretch</p></div>'); }
		
		if (document.getElementById('CoolMax').value == 'True') {
			document.write('<div id="TxtCoolMax" ><p><strong>Coolmax</strong></p><p>CoolMax fibers transport perspiration away for the body and provide great breathability, even when wet.</p></div>'); }
}
