
Indexes = new Array();
BinaryCodeIDs = new Array();
TreeNodeIDs = new Array();
Helper=new Array();
oldx=0;
oldy=0;

var	position=new Object();
var docEl = (
	typeof document.compatMode != "undefined" 
	&& 
	document.compatMode        != "BackCompat"
)? "documentElement" : "body";

function openLevisClipPopup()
{
	var width=320;
	var height=240;
	var url='http://www.ffmtower.de/frontline/';
	var name='LevisClip';
	newwindow=window.open(url, name, 'width=' + width + ',height=' + height + ',location=no,menubar=no,resizable=yes,status=no,toolbar=no,top=100,left=100');
	newwindow.focus();
	
} // function openLevisClipPopup()

function openLevisClipPopup2()
{
	var width=320;
	var height=240;
	var url='http://www.ffmtower.de/secrets/';
	var name='LevisClip';
	newwindow=window.open(url, name, 'width=' + width + ',height=' + height + ',location=no,menubar=no,resizable=yes,status=no,toolbar=no,top=100,left=100');
	newwindow.focus();
	
} // function openLevisClipPopup2()


function openSnobiety()
{
	//var el = document.all ? document.all['SnobLink'] : document.getElementById('SnobLink');
	
	//el.href=  "#";
	opener.open('http://www.highsnobiety.com');window.close();
}

function checkTell1()
{
	var mainemailEl = document.getElementById('mainemail');
	var messageEl = document.getElementById('message');
	var fullnameEl = document.getElementById('fullname');
	var alertmessage = '';
 
	if(fullnameEl.value == "")
		alertmessage += '<tr><td style="width:20px;" class="top"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/gcross.gif" style="width:9px;height:12px;" class="top"></td><td style="font-family:Georgia;font-size:12px;" class="top">Bitte trage deinen Namen ein!</td></tr><tr><td style="height:5px;" colspan="2">&nbsp;</td></tr>';
 	
	if (mainemailEl.value == '')
		alertmessage += '<tr><td style="width:20px;" class="top"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/gcross.gif" style="width:9px;height:12px;" class="top"></td><td style="font-family:Georgia;font-size:12px;" class="top">Bitte trage deine Email-Adresse ein!</td></tr><tr><td style="height:5px;" colspan="2">&nbsp;</td></tr>';
 
	if (messageEl.value == '')
		alertmessage += '<tr><td style="width:20px;" class="top"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/gcross.gif" style="width:9px;height:12px;" class="top"></td><td style="font-family:Georgia;font-size:12px;" class="top">Bitte trage deine Nachricht ein!</td></tr><tr><td style="height:5px;" colspan="2">&nbsp;</td></tr>';
	
	if(mainemailEl.value != '' && !mainemailEl.value.match('^[-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*@[-a-zA-Z0-9]+(\.[-a-zA-Z0-9]+)*\.([a-zA-Z]{2,4})$'))
		alertmessage += '<tr><td style="width:20px;" class="top"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/gcross.gif" style="width:9px;height:12px;" class="top"></td><td style="font-family:Georgia;font-size:12px;" class="top">Bitte gib eine gültige Email-Adresse ein!</td></tr><tr><td style="height:5px;" colspan="2">&nbsp;</td></tr>';
	
	if (alertmessage != '')
	{
		alertmessage = '<img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/fehler.gif" style="width:76px;height:18px;"><div style="height:205px;"><div style="padding-top:15px;"><table cellpadding="0" cellspacing="0" style="margin:0px;padding:0px;">'+alertmessage+'</table></div></div><div style="padding-left:195px;"><a href="javascript:ShowErrorControl.close();" style="text-decoration:none;"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/ok.gif" style="width:34px;height:26px;"></a></div>';
		ShowErrorControl.open();
		document.getElementById('errormsg').innerHTML=alertmessage;
	}
	else
		document.TellAFriend1.submit();
} // function checkTell1()

function checkTell2()
{
	var name1El = document.getElementById('name1');
	var name2El = document.getElementById('name2');
	var name3El = document.getElementById('name3');
	var name4El = document.getElementById('name4');
	var name5El = document.getElementById('name5');
	
	var mail1El = document.getElementById('mail1');
	var mail2El = document.getElementById('mail2');
	var mail3El = document.getElementById('mail3');
	var mail4El = document.getElementById('mail4');
	var mail5El = document.getElementById('mail5');

	name1El.style.backgroundColor='#d9d9d9';
	mail1El.style.backgroundColor='#d9d9d9';
	name1El.style.borderColor='#bfbfbe';
	mail1El.style.borderColor='#bfbfbe';

	name2El.style.backgroundColor='#d9d9d9';
	mail2El.style.backgroundColor='#d9d9d9';
	name2El.style.borderColor='#bfbfbe';
	mail2El.style.borderColor='#bfbfbe';

	name3El.style.backgroundColor='#d9d9d9';
	mail3El.style.backgroundColor='#d9d9d9';
	name3El.style.borderColor='#bfbfbe';
	mail3El.style.borderColor='#bfbfbe';

	name4El.style.backgroundColor='#d9d9d9';
	mail4El.style.backgroundColor='#d9d9d9';
	name4El.style.borderColor='#bfbfbe';
	mail4El.style.borderColor='#bfbfbe';

	name5El.style.backgroundColor='#d9d9d9';
	mail5El.style.backgroundColor='#d9d9d9';
	name5El.style.borderColor='#bfbfbe';
	mail5El.style.borderColor='#bfbfbe';
	
	var OrigMail = trim(document.TellAFriend2.mainemail.value.toLowerCase());
	
	var alertmessage = '';

	if (OrigMail == trim(mail1El.value.toLowerCase()) || OrigMail == trim(mail2El.value.toLowerCase()) || OrigMail == trim(mail3El.value.toLowerCase()) || OrigMail == trim(mail4El.value.toLowerCase()) || OrigMail == trim(mail5El.value.toLowerCase()))
		alertmessage += '<tr><td style="width:20px;" class="top"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/gcross.gif" style="width:9px;height:12px;" class="top"></td><td style="font-family:Georgia;font-size:12px;" class="top">Die Email-Adresse eines Freundes stimmt mit deiner Email-Adresse überein!</td></tr><tr><td style="height:5px;" colspan="2">&nbsp;</td></tr>';
 
	if(name1El.value == "" && mail1El.value == "")
	{
		alertmessage += '<tr><td style="width:20px;" class="top"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/gcross.gif" style="width:9px;height:12px;" class="top"></td><td style="font-family:Georgia;font-size:12px;" class="top">Bitte trage Namen & E-Mail Adresse von mindestens einem Freund ein!</td></tr><tr><td style="height:5px;" colspan="2">&nbsp;</td></tr>';
		name1El.style.backgroundColor='#e6d2c1';
		mail1El.style.backgroundColor='#e6d2c1';
		name1El.style.borderColor='#f7ae3d';
		mail1El.style.borderColor='#f7ae3d';
	}
	
	if((name1El.value != "" && mail1El.value == "") || (name1El.value == "" && mail1El.value != ""))
	{
		alertmessage += '<tr><td style="width:20px;" class="top"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/gcross.gif" style="width:9px;height:12px;" class="top"></td><td style="font-family:Georgia;font-size:12px;" class="top">Freund 1: Bitte trage den Namen und die Email-Adresse ein!</td></tr><tr><td style="height:5px;" colspan="2">&nbsp;</td></tr>';
		name1El.style.backgroundColor='#e6d2c1';
		mail1El.style.backgroundColor='#e6d2c1';
		name1El.style.borderColor='#f7ae3d';
		mail1El.style.borderColor='#f7ae3d';
	}
	if((name2El.value != "" && mail2El.value == "") || (name2El.value == "" && mail2El.value != ""))
	{
		alertmessage += '<tr><td style="width:20px;" class="top"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/gcross.gif" style="width:9px;height:12px;" class="top"></td><td style="font-family:Georgia;font-size:12px;" class="top">Freund 2: Bitte trage den Namen und die Email-Adresse ein!</td></tr><tr><td style="height:5px;" colspan="2">&nbsp;</td></tr>';
		name2El.style.backgroundColor='#e6d2c1';
		mail2El.style.backgroundColor='#e6d2c1';
		name2El.style.borderColor='#f7ae3d';
		mail2El.style.borderColor='#f7ae3d';
	}
	if((name3El.value != "" && mail3El.value == "") || (name3El.value == "" && mail3El.value != ""))
	{
		name3El.style.backgroundColor='#e6d2c1';
		mail3El.style.backgroundColor='#e6d2c1';
		name3El.style.borderColor='#f7ae3d';
		mail3El.style.borderColor='#f7ae3d';
		alertmessage += '<tr><td style="width:20px;" class="top"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/gcross.gif" style="width:9px;height:12px;" class="top"></td><td style="font-family:Georgia;font-size:12px;" class="top">Freund 3: Bitte trage den Namen und die Email-Adresse ein!</td></tr><tr><td style="height:5px;" colspan="2">&nbsp;</td></tr>';
	}
	if((name4El.value != "" && mail4El.value == "") || (name4El.value == "" && mail4El.value != ""))
	{
		name4El.style.backgroundColor='#e6d2c1';
		mail4El.style.backgroundColor='#e6d2c1';
		name4El.style.borderColor='#f7ae3d';
		mail4El.style.borderColor='#f7ae3d';
		alertmessage += '<tr><td style="width:20px;" class="top"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/gcross.gif" style="width:9px;height:12px;" class="top"></td><td style="font-family:Georgia;font-size:12px;" class="top">Freund 4: Bitte trage den Namen und die Email-Adresse ein!</td></tr><tr><td style="height:5px;" colspan="2">&nbsp;</td></tr>';
	}
	if((name5El.value != "" && mail5El.value == "") || (name5El.value == "" && mail5El.value != ""))
	{
		alertmessage += '<tr><td style="width:20px;" class="top"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/gcross.gif" style="width:9px;height:12px;" class="top"></td><td style="font-family:Georgia;font-size:12px;" class="top">Freund 5: Bitte trage den Namen und die Email-Adresse ein!</td></tr><tr><td style="height:5px;" colspan="2">&nbsp;</td></tr>';
		name5El.style.backgroundColor='#e6d2c1';
		mail5El.style.backgroundColor='#e6d2c1';
		name5El.style.borderColor='#f7ae3d';
		mail5El.style.borderColor='#f7ae3d';
	}
	if(mail1El.value != '' && !mail1El.value.match('^[-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*@[-a-zA-Z0-9]+(\.[-a-zA-Z0-9]+)*\.([a-zA-Z]{2,4})$'))
	{
		alertmessage += '<tr><td style="width:20px;" class="top"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/gcross.gif" style="width:9px;height:12px;" class="top"></td><td style="font-family:Georgia;font-size:12px;" class="top">Freund 1: Bitte gib eine gültige Email-Adresse ein!</td></tr><tr><td style="height:5px;" colspan="2">&nbsp;</td></tr>';
		mail1El.style.backgroundColor='#e6d2c1';
		mail1El.style.borderColor='#f7ae3d';
	}
	if(mail2El.value != '' && !mail2El.value.match('^[-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*@[-a-zA-Z0-9]+(\.[-a-zA-Z0-9]+)*\.([a-zA-Z]{2,4})$'))
	{
		alertmessage += '<tr><td style="width:20px;" class="top"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/gcross.gif" style="width:9px;height:12px;" class="top"></td><td style="font-family:Georgia;font-size:12px;" class="top">Freund 2: Bitte gib eine gültige Email-Adresse ein!</td></tr><tr><td style="height:5px;" colspan="2">&nbsp;</td></tr>';
		mail2El.style.backgroundColor='#e6d2c1';
		mail2El.style.borderColor='#f7ae3d';
	}
	if(mail3El.value != '' && !mail3El.value.match('^[-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*@[-a-zA-Z0-9]+(\.[-a-zA-Z0-9]+)*\.([a-zA-Z]{2,4})$'))
	{
		alertmessage += '<tr><td style="width:20px;" class="top"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/gcross.gif" style="width:9px;height:12px;" class="top"></td><td style="font-family:Georgia;font-size:12px;" class="top">Freund 3: Bitte gib eine gültige Email-Adresse ein!</td></tr><tr><td style="height:5px;" colspan="2">&nbsp;</td></tr>';
		mail3El.style.backgroundColor='#e6d2c1';
		mail3El.style.borderColor='#f7ae3d';
	}
	if(mail4El.value != '' && !mail4El.value.match('^[-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*@[-a-zA-Z0-9]+(\.[-a-zA-Z0-9]+)*\.([a-zA-Z]{2,4})$'))
	{
		alertmessage += '<tr><td style="width:20px;" class="top"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/gcross.gif" style="width:9px;height:12px;" class="top"></td><td style="font-family:Georgia;font-size:12px;" class="top">Freund 4: Bitte gib eine gültige Email-Adresse ein!</td></tr><tr><td style="height:5px;" colspan="2">&nbsp;</td></tr>';
		mail4El.style.backgroundColor='#e6d2c1';
		mail4El.style.borderColor='#f7ae3d';
	}
	if(mail5El.value != '' && !mail5El.value.match('^[-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*@[-a-zA-Z0-9]+(\.[-a-zA-Z0-9]+)*\.([a-zA-Z]{2,4})$'))
	{
		alertmessage += '<tr><td style="width:20px;" class="top"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/gcross.gif" style="width:9px;height:12px;" class="top"></td><td style="font-family:Georgia;font-size:12px;" class="top">Freund 5: Bitte gib eine gültige Email-Adresse ein!</td></tr><tr><td style="height:5px;" colspan="2">&nbsp;</td></tr>';
		mail5El.style.backgroundColor='#e6d2c1';
		mail5El.style.borderColor='#f7ae3d';
	}
	
	if (alertmessage != '')
	{
		alertmessage = '<img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/fehler.gif" style="width:76px;height:18px;"><div style="height:205px;"><div style="padding-top:15px;"><table cellpadding="0" cellspacing="0" style="margin:0px;padding:0px;">'+alertmessage+'</table></div></div><div style="padding-left:195px;"><a href="javascript:ShowErrorControl.close();" style="text-decoration:none;"><img src="http://www.frontlineshop.com/customGates/resources/binaries/de_DE/outlet/ok.gif" style="width:34px;height:26px;"></a></div>';
		ShowErrorControl.open();
		document.getElementById('errormsg').innerHTML=alertmessage;
	}
	else
		document.TellAFriend2.submit();
} // function checkTell2()

function trim (zeichenkette) 
{
	// Erst führende, dann Abschließende Whitespaces entfernen
	// und das Ergebnis dieser Operationen zurückliefern
	return zeichenkette.replace (/^\s+/, '').replace (/\s+$/, '');
} // function trim (zeichenkette)

function checkNewsLetterForm(msg)
{
	var mailEl = document.getElementById('RegisterNewsLetterEmail');
	
	if(
		document.getElementById('RegisterNewsLetterMen').checked != true 
		&& 
		document.getElementById('RegisterNewsLetterWomen').checked != true
		)
	{
		alert(msg);
		return false;
	}
	else if(! mailEl.value.match('^[-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*@[-a-zA-Z0-9]+(\.[-a-zA-Z0-9]+)*\.([a-zA-Z]{2,4})$'))
	{
		alert('Bitte gib eine gültige Email-Adresse ein!');
		return false;
	}
		
		return true;
} // function checkNewsLetterForm()

function valButton() 
{
}	
	
function checkNewsLetterOptout(msg)
{
	if (document.getElementById('r1').checked == true || document.getElementById('r2').checked == true || document.getElementById('r3').checked == true || document.getElementById('r4').checked == true)
    	return true;
    else
    {
    	alert(msg);
    	return false;
    }
} // function checkNewsLetterOptout()

function checkEmailAddress()
{
	var mailEl = document.getElementById('NewsletterEmail');
	
	if(! mailEl.value.match('^[-_a-zA-Z0-9]+(\.[-_a-zA-Z0-9]+)*@[-a-zA-Z0-9]+(\.[-a-zA-Z0-9]+)*\.([a-zA-Z]{2,4})$'))
	{
		alert('Bitte gib eine gültige Email-Adresse ein!');
		return false;
	}
	else	
		return true;
} // function checkEmailAddr()

function changeGiveAways(tnid, image)
{
   new Ajax.Request
   (
       'http://www.frontlineshop.com/index.php?screen=aj.request&task=getBinary&tnid='+tnid,
       {
           method : 'get',
           onSuccess: function(transport)
           {
               var data = eval('('+transport.responseText+')');
                             if (data.MESSAGE == "OK")
               {
                    ImageElement = document.getElementById(image);
                   ImageElement.src='http://www.frontlineshop.com/gateTools/scripts/binary.php?BinaryCodeID='+data.BINARYCODEID;
               }
               else
               {
                    ImageElement = document.getElementById(image);
                   ImageElement.src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/nopic/uebersicht_klein.gif';
                                 } // else [if ($data.MESSAGE == "OK")]
           } // onSuccess: function(transport)
       } // REQUEST
   );
} // function changeGiveAways(tnid, image) 

function preLoadImages(baseUrl)
{
	var BildArray = new Array();
	BildArray[0] = baseUrl+"/customGates/resources/binaries/de_DE/special/top/new/nav_home2.gif";
	BildArray[1] = baseUrl+"/customGates/resources/binaries/de_DE/special/top/new/nav_men2.gif";
	BildArray[2] = baseUrl+"/customGates/resources/binaries/de_DE/special/top/new/nav_women2.gif";
	BildArray[3] = baseUrl+"/customGates/resources/binaries/de_DE/special/top/new/nav_shoes2.gif";
	BildArray[4] = baseUrl+"/customGates/resources/binaries/de_DE/special/top/new/nav_shoes1.gif";
	BildArray[5] = baseUrl+"/customGates/resources/binaries/de_DE/special/top/new/nav_brands2.gif";
	BildArray[6] = baseUrl+"/customGates/resources/binaries/de_DE/special/top/new/nav_sale2.gif";
	BildArray[7] = baseUrl+"/customGates/resources/binaries/de_DE/special/top/new/nav_sale1.gif";
	BildArray[8] = baseUrl+"/customGates/resources/binaries/de_DE/special/top/new/nav_catalog2.gif";
	BildArray[9] = baseUrl+"/customGates/resources/binaries/de_DE/special/top/new/nav_couch2.gif";
	BildArray[10] = baseUrl+"/customGates/resources/binaries/de_DE/special/top/new/nav_brandneu2.gif";
	BildArray[11] = baseUrl+"/customGates/resources/binaries/de_DE/special/top/new/nav_brandneu1.gif";
	
	for (i=0; i < BildArray.length; i++) 
	{
	 var Bild = new Image();
	 Bild.src = BildArray[i];
	} // for (i=0; i < BildArray.length; i++) 
} // function preLoadImages()

function openCatWalkPopup(){
	var width=480;
	var height=270;
	var url='http://www.frontlineshop.com/index.php?screen=bs.catwalkpopup';
	var name='CatWalk';
	newwindow=window.open(url, name, 'width=' + width + ',height=' + height + ',location=no,menubar=no,resizable=yes,status=no,toolbar=no,top=100,left=100');
	newwindow.focus();
	
} //function openCatWalkPopup()


function changePic(identifier, forward, newLink)
{
	if (forward)
		if (Indexes[identifier] == (BinaryCodeIDs[identifier].length - 1))
			Indexes[identifier] = 0;
		else
			Indexes[identifier] = Indexes[identifier] + 1;
	else
		if (Indexes[identifier] == 0)
			Indexes[identifier] = (BinaryCodeIDs[identifier].length - 1);
		else
			Indexes[identifier] = Indexes[identifier] - 1;
	
	// Bild wechseln
	var el = document.all ? document.all[identifier] : document.getElementById(identifier);
	el.style.backgroundImage = 'url(http://www.frontlineshop.com/gateTools/scripts/binary.php?BinaryCodeID=' + BinaryCodeIDs[identifier][Indexes[identifier]] + ')';
	
	// Verlinkung wechseln
	var el = document.all ? document.all['link_' + identifier] : document.getElementById('link_' + identifier);
	el.href = newLink + '&VariantTreeNodeID=' + TreeNodeIDs[identifier][Indexes[identifier]];
	var el = document.all ? document.all['link2_' + identifier] : document.getElementById('link2_' + identifier);
	el.href = newLink + '&VariantTreeNodeID=' + TreeNodeIDs[identifier][Indexes[identifier]];
} // function changePic

function changeAjaxPic(identifier, forward, newLink, page, pid)
{
	if (forward)
		if (Indexes[identifier] == (BinaryCodeIDs[identifier].length - 1))
			Indexes[identifier] = 0;
		else
			Indexes[identifier] = Indexes[identifier] + 1;
	else
		if (Indexes[identifier] == 0)
			Indexes[identifier] = (BinaryCodeIDs[identifier].length - 1);
		else
			Indexes[identifier] = Indexes[identifier] - 1;
	
	// Bild wechseln
	var el = document.all ? document.all[identifier] : document.getElementById(identifier);
	el.style.backgroundImage = 'url(http://www.frontlineshop.com/gateTools/scripts/binary.php?BinaryCodeID=' + BinaryCodeIDs[identifier][Indexes[identifier]] + ')';
	
	// Verlinkung wechseln
	var el = document.all ? document.all['link_' + identifier] : document.getElementById('link_' + identifier);
	el.href = newLink + ',' + '\''+ TreeNodeIDs[identifier][Indexes[identifier]]+'\',\''+page+'\',\''+pid+'\')';

	var el = document.all ? document.all['link2_' + identifier] : document.getElementById('link2_' + identifier);
	el.href = newLink + ',' + '\'' + TreeNodeIDs[identifier][Indexes[identifier]]+'\',\''+page+'\',\''+pid+'\')';
} // function changeAjaxPic


globalOpenMenu=false;

function clearMenuTimeout(ImageObjectName)
{
	if(ImageObject = document.getElementById(ImageObjectName))
		ImageObject.stopTimeout();
}

function setMenuTimeout(ImageObjectName)
{
	if(ImageObject = document.getElementById(ImageObjectName))
		ImageObject.startTimeout();
}

function menuOver(ImageObject, ImageFile)
{
	if(globalOpenMenu != false && globalOpenMenu != ImageObject)	
		menuOut(globalOpenMenu.getAttribute('id'));

	globalOpenMenu = ImageObject;
	if(!ImageObject.outSrc)
		ImageObject.outSrc=ImageObject.src;
	ImageObject.src=ImageFile;

	ImageObject.stopTimeout = function()	{
		if(this.timeout)
			clearTimeout(this.timeout);
	}

	ImageObject.startTimeout = function()	{
		if(this.SubMenu)
			this.timeout = setTimeout('menuOut("'+this.getAttribute('id')+'")',1000);
		else	
		{
			menuOut(this.getAttribute('id'));
		}
	}
	
	if(ImageObject.SubMenu = document.getElementById(ImageObject.getAttribute('id')+"Sub"))
	{
		ImageObject.SubMenu.style.display='block';
	}
	return false;
}

function menuOut(ImageObjectName)
{
	if(!(ImageObject = document.getElementById(ImageObjectName)))
		return;
	ImageObject.stopTimeout();
	
	if (ImageObjectName != "Brandneu" && ImageObjectName != "BrandneuB" && ImageObjectName != "Trends" && ImageObjectName != "TrendsB" && ImageObjectName != "ShoesB" && ImageObjectName != "SaleB" && ImageObjectName != "Sale" && ImageObjectName != "Shoes")
		ImageObject.src=ImageObject.outSrc;
	else
	{
		if (ImageObjectName == "Shoes")
			ImageObject.src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/top/new/nav_shoes.gif';
		else if(ImageObjectName == "Brandneu")
			ImageObject.src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/top/new/nav_brandneu.gif';
		else if(ImageObjectName == "Sale")
			ImageObject.src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/top/new/nav_sale.gif';
		else if(ImageObjectName == "Trends")
			ImageObject.src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/top/new/nav_blog.gif';
		else if(ImageObjectName == "ShoesB")
			ImageObject.src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/brandstore/top/nav_shoes.gif';
		else if(ImageObjectName == "SaleB")
			ImageObject.src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/brandstore/top/nav_sale.gif';
		else if(ImageObjectName == "TrendsB")
			ImageObject.src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/brandstore/top/nav_blog.gif';
		else if(ImageObjectName == "BrandneuB")
			ImageObject.src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/brandstore/top/nav_brandneu.gif';
			
	}
	
	if(ImageObject.SubMenu)
	{
		ImageObject.SubMenu.style.display='none';
	}
}

function OpenWindow(url, name, width, height)
{
	window.open(url, name, 'width=' + width + ',height=' + height + ',location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no,top=100,left=100');
} // function OpenWindow

function OpenPopup(url, name, width, height, scrollbars)
{
	newwindow=window.open(url, name, 'width=' + width + ',height=' + height + ',location=no,menubar=no,resizable=yes,scrollbars=' + scrollbars +',status=no,toolbar=no,top=100,left=100');
	newwindow.focus();
} // function OpenWindow

function LoadOpener(url)
{
	window.opener.location.href=url;
}

function CloseWindow()
{
	window.close();
}

function OpenCatalogPopup(url, name, width, height, scrollbars)
{
	newwindow = window.open('', name, 'width=' + width + ',height=' + height + ',location=no,menubar=no,resizable=yes,scrollbars=' + scrollbars +',status=no,toolbar=no,top=100,left=100');
	
	if (newwindow.location.href == 'about:blank' || newwindow.location.href.indexOf('TreeNodeID') > 0 || newwindow.location.href.indexOf('oc.home') > 0 || newwindow.location.href.indexOf('tr.catalog') > 0)
	{
		newwindow=window.open(url, name, 'width=' + width + ',height=' + height + ',location=no,menubar=no,resizable=yes,scrollbars=' + scrollbars +',status=no,toolbar=no,top=100,left=100');
		newwindow.focus();
	}
	else
	{
		newwindow.focus();
	}
	
} // function OpenCatalogPopup

function changeDisplay(the_div)
{
	if(this.document.getElementById(the_div).style.display == 'none')
		this.document.getElementById(the_div).style.display = 'inline';
	else
		this.document.getElementById(the_div).style.display = 'none';
} // function changeDisplay

function changeVisibility(element_id)
{
	if (this.document.getElementById(element_id).style.visibility == 'hidden')
	{
		this.document.getElementById(element_id).style.visibility = 'visible';
	}
	else
	{
		this.document.getElementById(element_id).style.visibility = 'hidden';
	}
} // function changeVisibility

function SwitchImage(ImageElementName,BinaryCodeID,BCVID)
{
	if (document.getElementById(ImageElementName))
	{
		document.getElementById(ImageElementName).src='http://www.frontlineshop.com/gateTools/scripts/binary.php?BCVID='+BCVID+'&BinaryCodeID='+BinaryCodeID;
	}
} // function SwitchImage(ImageElementName,BinaryCodeID,BCVID)

function ModifyTask()
{
	this.document.fd_PersonDataWinzone.task.value='NewCode';
	this.document.fd_PersonDataWinzone.submit();
} // function ModifyTask()=======

function showShop(turl){
	if(!opener){
		 window.open(turl, 'main','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
	} else{
		opener.location.href=turl;
		opener.focus();
	}
}

function focusShop(turl){
	if(!opener){
		window.open(turl, 'main','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes');
	} else{
		opener.focus();
	}
}

function scrolldown(the_div, divheight, LocaleString) 
{
	var tag;
	var ScrollLink = document.getElementById('ScrollLink');
	
	if (typeof(LocaleString) == 'undefined')
		var LocaleString = 'de_DE';
 
 	if(Helper[the_div]["Counter"] < divheight) 
  	{
  
		Helper[the_div]["working"] = 1;
		Helper[the_div]["Counter"]++;
		Helper[the_div]["Counter"]++;
		
		if (ScrollLink)
		{		
			Helper[the_div]["Counter"]++;
			Helper[the_div]["Counter"]++;
			Helper[the_div]["Counter"]++;
			Helper[the_div]["Counter"]++;
			Helper[the_div]["Counter"]++;
			Helper[the_div]["Counter"]++;
			Helper[the_div]["Counter"]++;
			Helper[the_div]["Counter"]++;
		} // if (ScrollLink)			
		
		document.getElementById(the_div).style.height = Helper[the_div]["Counter"]+'px'; 
		tag = "scrolldown('"+the_div+"','"+divheight+"','"+LocaleString+"')";
		aktiv = window.setTimeout(tag,1); 
  	}
  	else
  	{
		Helper[the_div]["working"] = 0;

		if (ScrollLink)
			ScrollLink.innerHTML = '<img src="http://www.frontlineshop.com/customGates/resources/binaries/'+LocaleString+'/special/reiter/wenigerBrands.gif" onMouseOver="this.src=\'http://www.frontlineshop.com/customGates/resources/binaries/'+LocaleString+'/special/reiter/wenigerBrands_rollover.gif\';" onMouseOut="this.src=\'http://www.frontlineshop.com/customGates/resources/binaries/'+LocaleString+'/special/reiter/wenigerBrands.gif\';">';	
  	} // if(Helper[the_div]["Counter"] < divheight) 
} // function scrolldown(the_div, divheight) 

function scrollup(the_div, LocaleString) 
{ 
	var tag;
	var ScrollLink = document.getElementById('ScrollLink');
	
	if (typeof(LocaleString) == 'undefined')
		var LocaleString = 'de_DE';
		
 	if(Helper[the_div]["Counter"] > 1) 
  	{
		Helper[the_div]["working"] = 1;
		Helper[the_div]["Counter"] = (Helper[the_div]["Counter"]-2);
		
		if (ScrollLink && isMoz)
			Helper[the_div]["Counter"] = (Helper[the_div]["Counter"]-5000);
		else if (ScrollLink)
			Helper[the_div]["Counter"] = (Helper[the_div]["Counter"]-8);
		
		// Sicherstellen das die Höhe niemals geringer als 0 ist
		if (Helper[the_div]["Counter"] < 0)
			Helper[the_div]["Counter"] = 0;
		
		// Wenn noch nicht ganz eingeklappt, dann weiter einklappen
		if (Helper[the_div]["Counter"] > 0)
		{
			document.getElementById(the_div).style.height = Helper[the_div]["Counter"]+'px';
			tag = "scrollup('"+the_div+"','"+LocaleString+"')";
			aktiv = window.setTimeout(tag,1); 
		}
		else // Beenden des Einklappens weil die Höhe schon 0 ist
		{
			Helper[the_div]["working"] = 0;
			
			// Zur Sicherheit wieder zurück auf die Ursprungshöhe
			document.getElementById(the_div).style.height = '1px';
		
			// Nach dem Einklappen der Liste die Linkbezeichnung oder Grafik austauschen
			if (ScrollLink)
				ScrollLink.innerHTML = '<img src="http://www.frontlineshop.com/customGates/resources/binaries/'+LocaleString+'/special/reiter/AlleBrands.gif" onMouseOver="this.src=\'http://www.frontlineshop.com/customGates/resources/binaries/'+LocaleString+'/special/reiter/AlleBrands_rollover.gif\';" onMouseOut="this.src=\'http://www.frontlineshop.com/customGates/resources/binaries/'+LocaleString+'/special/reiter/AlleBrands.gif\';">';	
		} // else [if (Helper[the_div]["Counter"] > 0)]
	}
  	else
  	{
		Helper[the_div]["working"] = 0;
		
		if (ScrollLink)
			ScrollLink.innerHTML = '<img src="http://www.frontlineshop.com/customGates/resources/binaries/'+LocaleString+'/special/reiter/AlleBrands.gif" onMouseOver="this.src=\'http://www.frontlineshop.com/customGates/resources/binaries/'+LocaleString+'/special/reiter/AlleBrands_rollover.gif\';" onMouseOut="this.src=\'http://www.frontlineshop.com/customGates/resources/binaries/'+LocaleString+'/special/reiter/AlleBrands.gif\';">';	
  	} // else [if(Helper[the_div]["Counter"] > 1) ]
} // function scrollup(the_div)  

function changeBrandScroll(the_div, length, LocaleString)
{
	var ScrollUpFlag = false;
	
	if (typeof(LocaleString) == 'undefined')
		var LocaleString = 'de_DE';

	// br.home übergibt keine length da statisch
	if (typeof(length) == 'undefined')
	{
		var length = 10;
		var divheight = 30;
	} // if (typeof(length) == 'undefined')
	else
	{
		// 19 Pixel Länge * Anzahl der verdeckten Brands (passt ungefähr)
		var divheight = length * 19.2;
		
		// Wenn nicht br.home (fixe Größe) dann auch wieder "zurückscrollen" zulassen
		ScrollUpFlag = true;
	} // else [if (typeof(length) == 'undefined')]

	if (!Helper[the_div])
	{
		Helper[the_div] = new Array();
		Helper[the_div]["Counter"] = 0;
		Helper[the_div]["working"] = 0;
	} // if (!Helper[the_div])

	if (Helper[the_div]["working"] == 0 && Helper[the_div]["Counter"] < divheight)
	{
		scrolldown(the_div, divheight, LocaleString);
	} // if (Helper[the_div]["working"] == 0 && Helper[the_div]["Counter"] < divheight)
	else if (Helper[the_div]["working"] == 0 && Helper[the_div]["Counter"] > length)
	{
		if (ScrollUpFlag == true)
			scrollup(the_div, LocaleString);
	} // else if (Helper[the_div]["working"] == 0 && Helper[the_div]["Counter"] > length)
	
} // function changeBrandScroll


/**
*
* URL encode / decode
* http://www.webtoolkit.info/
*
**/

var Url = {

    // public method for url encoding
    encode : function (string) {
        return escape(this._utf8_encode(string));
    },

    // public method for url decoding
    decode : function (string) {
        return this._utf8_decode(unescape(string));
    },

    // private method for UTF-8 encoding
    _utf8_encode : function (string) {
        string = string.replace(/\r\n/g,"\n");
        var utftext = "";

        for (var n = 0; n < string.length; n++) {

            var c = string.charCodeAt(n);

            if (c < 128) {
                utftext += String.fromCharCode(c);
            }
            else if((c > 127) && (c < 2048)) {
                utftext += String.fromCharCode((c >> 6) | 192);
                utftext += String.fromCharCode((c & 63) | 128);
            }
            else {
                utftext += String.fromCharCode((c >> 12) | 224);
                utftext += String.fromCharCode(((c >> 6) & 63) | 128);
                utftext += String.fromCharCode((c & 63) | 128);
            }

        }

        return utftext;
    },

    // private method for UTF-8 decoding
    _utf8_decode : function (utftext) {
        var string = "";
        var i = 0;
        var c = c1 = c2 = 0;

        while ( i < utftext.length ) {

            c = utftext.charCodeAt(i);

            if (c < 128) {
                string += String.fromCharCode(c);
                i++;
            }
            else if((c > 191) && (c < 224)) {
                c2 = utftext.charCodeAt(i+1);
                string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
                i += 2;
            }
            else {
                c2 = utftext.charCodeAt(i+1);
                c3 = utftext.charCodeAt(i+2);
                string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
                i += 3;
            }

        }

        return string;
    }

}

function getAbsoluteElementPosition(element)
{
	var elem=element,tagname="",x=0,y=0;

	while ((typeof(elem)=="object")&&(typeof(elem.tagName)!="undefined"))
	{
		y+=elem.offsetTop;     /* Offset des jeweiligen Elements addieren */
		x+=elem.offsetLeft;    /* Offset des jeweiligen Elements addieren */
		tagname=elem.tagName.toUpperCase(); /* tag-Name ermitteln, Grossbuchstaben */

		if (tagname=="BODY")
			elem=0;

		if (typeof(elem)=="object")
			if (typeof(elem.offsetParent)=="object")
				elem=elem.offsetParent;
	}

	position=new Object();
	position.x=x;
	position.y=y;
	return position;
} // function getAbsoluteElementPosition(element)
		
function pageOffset(win)
{
    if(!win) win = window;
    var pos = {left:0,top:0};

    if(typeof win.pageXOffset != 'undefined')
    {
         // Mozilla/Netscape
         pos.left = win.pageXOffset;
         pos.top = win.pageYOffset;
    }
    else
    {
         var obj = (win.document.compatMode && win.document.compatMode == "CSS1Compat") ?
         win.document.documentElement : win.document.body || null;

         pos.left = obj.scrollLeft;
         pos.top = obj.scrollTop;
    }
    return pos;
}

function subscribeNewsletter()
{
	var Email = document.getElementById('emailNL').value;
	var Gender = getValueRadio('GenderNL');
	
	if (document.getElementById('PromoCode'))
		var PromoCode = document.getElementById('PromoCode').value;
	else
		var PromoCode = '';
	
	if (Gender == '' || Gender == null)
	{
		alert('Bitte Geschlecht auswählen!');
		return false;
	}
	
	if (Email == '')
	{
		alert('Bitte Email-Adresse angeben!');
		return false;
	}

	new Ajax.Request
	(
		'http://www.frontlineshop.com/index.php?screen=nl.register&gender='+Gender+'&email='+Email+'&task=register_first&Ajax=1&PromoCode='+PromoCode,
		{
			method : 'get',
			onSuccess: function(transport)
			{
				var data = eval('('+transport.responseText+')');								
				if (data.MESSAGE == 'OK')
				{
					document.getElementById('NLHeadline').innerHTML = unescape(data.CONTENT);
					document.getElementById('NLText').style.display='none';
					document.getElementById('NLWelcome').style.display='none';
					document.getElementById('NLdabei').style.display='none';
					document.getElementById('NLInput').style.display='none';
					document.getElementById('NLabsenden').style.display='none';
					//Omniture
					s.hier1 += '/Ajax Newsletter';	//Hierachie ergänzen
					s.events = 'event9';	//Register Event
					s.prop4 += ' Ajax Newsletter Registration';	//Pagename ergänzen
					s.t();	
				}
				else
				{
					document.getElementById('NLText').innerHTML = unescape(data.CONTENT);
					document.getElementById('NLWelcome').style.display='none';
					document.getElementById('NLdabei').style.display='none';
					document.getElementById('NLInput').style.display='none';
					document.getElementById('NLabsenden').style.display='none';
					document.getElementById('NLLogo').style.display='none';
				}
			} // onSuccess: function(transport)
		} // RequestParams
	);						
} // function subscribeNewsletter()

function subscribeItemNewsletter()
{
	// Funktion für NL-Registrierung auf der ProductPage
	var Email = document.getElementById('emailNL').value;

	var Gender = getValueRadio('GenderNL');
	
	if (document.getElementById('PromoCode'))
		var PromoCode = document.getElementById('PromoCode').value;
	else
		var PromoCode = '';

	if (document.getElementById('gclid'))
	{
		var gclid = document.getElementById('gclid').value;
		if (gclid != '')
			PromoCode = 'Google SEM';
	}

	if (document.getElementById('OVRAW'))
	{
		var OVRAW = document.getElementById('OVRAW').value;
		if (OVRAW != '')
			PromoCode = 'Yahoo SEM';
	}
	
	if (Gender == '' || Gender == null)
	{
		alert('Bitte Geschlecht auswählen!');
		return false;
	}
	
	if (Email == '')
	{
		alert('Bitte Email-Adresse angeben!');
		return false;
	}

	new Ajax.Request
	(
		'http://www.frontlineshop.com/index.php?screen=nl.register&gender='+Gender+'&email='+Email+'&task=register_first&Ajax=1&PromoCode='+PromoCode,
		{
			method : 'get',
			onSuccess: function(transport)
			{
				var data = eval('('+transport.responseText+')');								
				if (data.MESSAGE == 'OK')
				{
					document.getElementById('NLBG').style.backgroundImage='url(http://www.frontlineshop.com/customGates/resources/binaries/de_DE/newsletter/new_overlay_success_back.jpg)';
					document.getElementById('NL3').style.display='none';
					document.getElementById('NL4').style.display='none';
					document.getElementById('NL5').style.display='none';
					document.getElementById('NL6').style.display='none';
					//Omniture
					s.hier1 += '/Ajax Newsletter';	//Hierachie ergänzen
					s.events = 'event9';	//Register Event
					s.prop4 += ' Ajax Newsletter Registration';	//Pagename ergänzen
					s.t();	
				}
				else
				{
					alert(unescape(data.ALERTBOX));
				}
			} // onSuccess: function(transport)
		} // RequestParams
	);						
} // function subscribeNewsletter()


function subscribeNewsletterPayPal()
{
	var Email = document.getElementById('emailNL').value;
	var Gender = getValueRadio('GenderNL');
	
	if (Gender == '' || Gender == null)
	{
		alert('Bitte Geschlecht auswählen!');
		return false;
	}
	
	if (Email == '')
	{
		alert('Bitte Email-Adresse angeben!');
		return false;
	}

	new Ajax.Request
	(
		'http://www.frontlineshop.com/index.php?screen=nl.register&gender='+Gender+'&email='+Email+'&task=register_first&Ajax=1&PayPal=1',
		{
			method : 'get',
			onSuccess: function(transport)
			{
				var data = eval('('+transport.responseText+')'); 
				
				if (data.MESSAGE == 'OK')
				{
					document.getElementById('NLHeadline').innerHTML = unescape(data.CONTENT);
					document.getElementById('NLText').style.display='none';
					document.getElementById('NLWelcome').style.display='none';
					document.getElementById('NLdabei').style.display='none';
					document.getElementById('NLInput').style.display='none';
					document.getElementById('NLabsenden').style.display='none';
					//Omniture
					s.hier1 += '/Ajax Newsletter Paypal';	//Hierachie ergänzen
					s.events = 'event9';	//Register Event
					s.prop4 += ' Ajax Newsletter Registration Paypal';	//Pagename ergänzen
					s.t();
				}
				else
				{
					document.getElementById('NLText').innerHTML = unescape(data.CONTENT);
					document.getElementById('NLWelcome').style.display='none';
					document.getElementById('NLdabei').style.display='none';
					document.getElementById('NLInput').style.display='none';
					document.getElementById('NLabsenden').style.display='none';
					document.getElementById('NLLogo').style.display='none';
					
				}
			} // onSuccess: function(transport)
		} // RequestParams
	);						
} // function subscribeNewsletter()

function ShowDetailsLayer(ScreenArea, TreeNodeID, BCVID, Video, BrandstoreID)
{
	if (typeof(BCVID) == 'undefined')
		var BCVID = '';

	if (typeof(Video) == 'undefined')
		var Video = '';
	
	if (typeof(BrandstoreID) == 'undefined')
		var BrandstoreParam = '';
	else
		var BrandstoreParam = '&BrandstoreID='+BrandstoreID;
	
	new Ajax.Request
	(
		'http://www.frontlineshop.com/index.php?screen='+ScreenArea+'.layerdetails&tnid='+TreeNodeID+'&bcvid='+BCVID+'&video='+Video+BrandstoreParam,
		{
			method : 'get',
			onSuccess: function(transport)
			{
				var responseArray = transport.responseText.split("{");

				ShowProductControl.open();
				document.getElementById('LC').innerHTML = responseArray[0];

				var JasonContent = '{'+responseArray[1];
				var data = eval('('+JasonContent+')'); 
				
				if (data.MESSAGE == 'OK')
				{	
					//Omniture
					var s=s_gi(s_account);
					s.linkTrackVars = 'products,hier1,events,eVar15';
					s.linkTrackEvents = 'prodView,event3,event15';
					s.events = 'prodView,event3,event15'; //Events für Produktansichtszoom
					s.hier1 = unescape(data.SHIER1);
					s.eVar15 = unescape(data.SEVAR15);
					s.tl(this, 'o'); //es sollen nur Teile getracked werden als Custom Link ('o')
				}
			} // onSuccess: function(transport)
		} // RequestParams
	);						
} // function ShowDetailsLayer(ScreenArea, TreeNodeID, BCVID, Video,BrandstoreID)

function getValueRadio(name) 
{ 
	// Liefert den Value eines Radio-Buttons zurueck
    var arrEl, i, el; 
    arrEl = document.getElementsByName(name); 
    for (i = 0; i < arrEl.length; i++) 
    { 
        el = arrEl[i]; 
        if (el.checked == true) return el.value; 
    }; 
    return null; 
} 

function init_mousemove() 
{
	if(document.layers)
	{
		document.captureEvents(Event.MOUSEMOVE);
	}
	document.onmousemove =	dpl_mouse_pos;
} // function init_mousemove()

function dpl_mouse_pos(e) 
{
    // position where mousemove fired
    //
    var xPos    =  e? e.pageX : window.event.x;
    var yPos    =  e? e.pageY : window.event.y;
    
	position.yy=yPos;
    
    // for ie add scroll position
    if (document.all && !document.captureEvents) 
    {
        xPos    += document[docEl].scrollLeft;
        yPos    += document[docEl].scrollTop;
    } // if (document.all && !document.captureEvents)
    else
	    position.yy = (yPos - window.pageYOffset);
	    
    // display position
    //
	position.x=xPos;
	position.y=yPos;

    if (document.layers)
    { 
    	routeEvent(e);
    }
} // function dpl_mouse_pos(e) 

function linkHandler(Gender)
{
	if (Gender == 'Men')
	{
		if (position.x > 63 && position.y > 360 && position.x < 226 && position.y < 490)
		{
			document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs2_men.jpg';
			if ((oldx < 63 && oldy < 360) || (oldx > 226 && oldy > 490))
			{
				document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts1_men.jpg';
				document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen1_men.jpg';
				document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones1_men.jpg';
				document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies1_men.jpg';
				document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren1_men.jpg';
				document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves1_men.jpg';
				document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/underwear1_men.jpg';
				document.body.style.cursor="pointer";
				
				oldx = position.x;
				oldy = position.y
			}			
		}
		else if (position.x > 300 && position.y > 365 && position.x < 368 && position.y < 440)
		{
			document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts2_men.jpg';
			if ((oldx < 300 && oldy < 365) || (oldx > 368 && oldy > 440))
			{
				document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs1_men.jpg';
				document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen1_men.jpg';
				document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones1_men.jpg';
				document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies1_men.jpg';
				document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren1_men.jpg';
				document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves1_men.jpg';
				document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/underwear1_men.jpg';
				document.body.style.cursor="pointer";
	
				oldx = position.x;
				oldy = position.y
			}
		}
		else if (position.x > 448 && position.y > 332 && position.x < 675 && position.y < 507)
		{
			document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen2_men.jpg';
			if ((oldx < 448 && oldy < 332) || (oldx > 675 && oldy > 507))
			{
				document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs1_men.jpg';
				document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts1_men.jpg';
				document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones1_men.jpg';
				document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies1_men.jpg';
				document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren1_men.jpg';
				document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves1_men.jpg';
				document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/underwear1_men.jpg';			
				document.body.style.cursor="pointer";
				oldx = position.x;
				oldy = position.y
			}
		}
		else if (position.x > 297 && position.y > 470 && position.x < 364 && position.y < 565)
		{
			document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones2_men.jpg';
			if ((oldx < 297 && oldy < 470) || (oldx > 364 && oldy > 565))
			{
				document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs1_men.jpg';
				document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts1_men.jpg';
				document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen1_men.jpg';
				document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies1_men.jpg';
				document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren1_men.jpg';
				document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves1_men.jpg';
				document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/underwear1_men.jpg';
				document.body.style.cursor="pointer";
				oldx = position.x;
				oldy = position.y
			}
		}
		else if (position.x > 54 && position.y > 575 && position.x < 167 && position.y < 705)
		{
			document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies2_men.jpg';
			if ((oldx < 54 && oldy < 575) || (oldx > 167 && oldy > 705))
			{
				document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs1_men.jpg';
				document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts1_men.jpg';
				document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen1_men.jpg';
				document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones1_men.jpg';
				document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren1_men.jpg';
				document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves1_men.jpg';
				document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/underwear1_men.jpg';
				document.body.style.cursor="pointer";
				oldx = position.x;
				oldy = position.y
			}
		}
		else if (position.x > 209 && position.y > 575 && position.x < 263 && position.y < 705)
		{
			document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren2_men.jpg';
			if ((oldx < 209 && oldy < 575) || (oldx > 263 && oldy > 705))
			{
				document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs1_men.jpg';
				document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts1_men.jpg';
				document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen1_men.jpg';
				document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones1_men.jpg';
				document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies1_men.jpg';
				document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves1_men.jpg';
				document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/underwear1_men.jpg';
				document.body.style.cursor="pointer";
				oldx = position.x;
				oldy = position.y
			}
		}
		else if (position.x > 307 && position.y > 590 && position.x < 427 && position.y < 700)
		{
			document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves2_men.jpg';
			if ((oldx < 307 && oldy < 590) || (oldx > 427 && oldy > 700))
			{
				document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs1_men.jpg';
				document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts1_men.jpg';
				document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen1_men.jpg';
				document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones1_men.jpg';
				document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies1_men.jpg';
				document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren1_men.jpg';
				document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/underwear1_men.jpg';			
				document.body.style.cursor="pointer";
				oldx = position.x;
				oldy = position.y
			}
		}
		else if (position.x > 457 && position.y > 520 && position.x < 746 && position.y < 705)
		{
			document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/underwear2_men.jpg';			
			if ((oldx < 457 && oldy < 520) || (oldx > 746 && oldy > 705))
			{
				document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs1_men.jpg';
				document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts1_men.jpg';
				document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen1_men.jpg';
				document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones1_men.jpg';
				document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies1_men.jpg';
				document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren1_men.jpg';
				document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves1_men.jpg';
				document.body.style.cursor="pointer";
				oldx = position.x;
				oldy = position.y
			}
		}
		else
		{
			if (oldx > 0 && oldy > 0)
			{
				document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs1_men.jpg';
				document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts1_men.jpg';
				document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen1_men.jpg';
				document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones1_men.jpg';
				document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies1_men.jpg';
				document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren1_men.jpg';
				document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves1_men.jpg';
				document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/underwear1_men.jpg';			
				document.body.style.cursor="";
				oldx=0;
				oldy=0;
			} // if (oldx > 0 && oldy > 0)
		} // else
	} // if (Gender == 'Men')

	if (Gender == 'Women')
	{
		if (position.x > 53 && position.y > 323 && position.x < 293 && position.y < 484)
		{
			// Taschen
			document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen2_women.jpg';
			if ((oldx < 53 && oldy < 323) || (oldx > 293 && oldy > 484))
			{
				document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs1_women.jpg';
				document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies1_women.jpg';
				document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren1_women.jpg';
				document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts1_women.jpg';
				document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones1_women.jpg';
				document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/schmuck1_women.jpg';
				document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves1_women.jpg';
				document.body.style.cursor="pointer";
				
				oldx = position.x;
				oldy = position.y
			}			
		}
		else if (position.x > 436 && position.y > 321 && position.x < 546 && position.y < 517)
		{
			// Schals
			document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs2_women.jpg';
			if ((oldx < 436 && oldy < 321) || (oldx > 546 && oldy > 517))
			{
				document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen1_women.jpg';
				document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies1_women.jpg';
				document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren1_women.jpg';
				document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts1_women.jpg';
				document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones1_women.jpg';
				document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/schmuck1_women.jpg';
				document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves1_women.jpg';
				document.body.style.cursor="pointer";
	
				oldx = position.x;
				oldy = position.y
			}
		}
		else if (position.x > 620 && position.y > 350 && position.x < 741 && position.y < 442)
		{
			// Muetzen
			document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies2_women.jpg';
			if ((oldx < 620 && oldy < 350) || (oldx > 741 && oldy > 442))
			{
				document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen1_women.jpg';
				document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs1_women.jpg';
				document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren1_women.jpg';
				document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts1_women.jpg';
				document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones1_women.jpg';
				document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/schmuck1_women.jpg';
				document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves1_women.jpg';
				document.body.style.cursor="pointer";
				oldx = position.x;
				oldy = position.y
			}
		}
		else if (position.x > 127 && position.y > 528 && position.x < 270 && position.y < 567)
		{
			// Uhren
			document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren2_women.jpg';
			if ((oldx < 127 && oldy < 528) || (oldx > 270 && oldy > 567))
			{
				document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen1_women.jpg';
				document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs1_women.jpg';
				document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies1_women.jpg';
				document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts1_women.jpg';
				document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones1_women.jpg';
				document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/schmuck1_women.jpg';
				document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves1_women.jpg';
				document.body.style.cursor="pointer";
				oldx = position.x;
				oldy = position.y
			}
		}
		else if (position.x > 611 && position.y > 465 && position.x < 747 && position.y < 524)
		{
			// Gürtel
			document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts2_women.jpg';
			if ((oldx < 611 && oldy < 465) || (oldx > 747 && oldy > 524))
			{
				document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen1_women.jpg';
				document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs1_women.jpg';
				document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies1_women.jpg';
				document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren1_women.jpg';
				document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones1_women.jpg';
				document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/schmuck1_women.jpg';
				document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves1_women.jpg';
				document.body.style.cursor="pointer";
				oldx = position.x;
				oldy = position.y
			}
		}
		else if (position.x > 115 && position.y > 581 && position.x < 269 && position.y < 672)
		{
			// Headphones
			document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones2_women.jpg';
			if ((oldx < 115 && oldy < 581) || (oldx > 269 && oldy > 672))
			{
				document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen1_women.jpg';
				document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs1_women.jpg';
				document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies1_women.jpg';
				document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren1_women.jpg';
				document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts1_women.jpg';
				document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/schmuck1_women.jpg';
				document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves1_women.jpg';
				document.body.style.cursor="pointer";
				oldx = position.x;
				oldy = position.y
			}
		}
		else if (position.x > 361 && position.y > 585 && position.x < 472 && position.y < 680)
		{
			//Schmuck
			document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/schmuck2_women.jpg';
			if ((oldx < 361 && oldy < 585) || (oldx > 472 && oldy > 680))
			{
				document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen1_women.jpg';
				document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs1_women.jpg';
				document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies1_women.jpg';
				document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren1_women.jpg';
				document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts1_women.jpg';
				document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones1_women.jpg';
				document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves1_women.jpg';
				document.body.style.cursor="pointer";
				oldx = position.x;
				oldy = position.y
			}
		}
		else if (position.x > 541 && position.y > 560 && position.x < 733 && position.y < 701)
		{
			// Gloves
			document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves2_women.jpg';
			if ((oldx < 541 && oldy < 560) || (oldx > 733 && oldy > 701))
			{
				document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen1_women.jpg';
				document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs1_women.jpg';
				document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies1_women.jpg';
				document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren1_women.jpg';
				document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts1_women.jpg';
				document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones1_women.jpg';
				document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/schmuck1_women.jpg';
				document.body.style.cursor="pointer";
				oldx = position.x;
				oldy = position.y
			}
		}
		else
		{
			if (oldx > 0 && oldy > 0)
			{
				document.getElementById('Img1').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/taschen1_women.jpg';
				document.getElementById('Img2').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/scarfs1_women.jpg';
				document.getElementById('Img3').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/beanies1_women.jpg';
				document.getElementById('Img4').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/uhren1_women.jpg';
				document.getElementById('Img5').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/belts1_women.jpg';
				document.getElementById('Img6').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/headphones1_women.jpg';
				document.getElementById('Img7').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/schmuck1_women.jpg';
				document.getElementById('Img8').src='http://www.frontlineshop.com/customGates/resources/binaries/de_DE/special/xmas09/gloves1_women.jpg';
				document.body.style.cursor="";
				oldx=0;
				oldy=0;
			} // if (oldx > 0 && oldy > 0)
		} // else
	} // if (Gender == 'Women')


} // function linkHandler(Gender)

function linkClicked(Gender)
{
	if (Gender == 'Men')
	{

		if (position.x > 63 && position.y > 365 && position.x < 226 && position.y < 495)
			document.location.href="http://www.frontlineshop.com/index.php?screen=me.category&PageSize=128&ClassName=Filter&action=insert&ClassName=Filter&filter_id[]=179&filter_value[]=m0200&filter_id[]=146&filter_value[]=Scarfs&SortCriteria=top";
		else if (position.x > 300 && position.y > 369 && position.x < 368 && position.y < 445)
			document.location.href="http://www.frontlineshop.com/index.php?screen=me.category&PageSize=128&ClassName=Filter&action=insert&ClassName=Filter&filter_id[]=179&filter_value[]=m0200&filter_id[]=146&filter_value[]=Belt&SortCriteria=top";
		else if (position.x > 448 && position.y > 337 && position.x < 675 && position.y < 512)
			document.location.href="http://www.frontlineshop.com/index.php?screen=me.category&PageSize=128&ClassName=Filter&action=insert&ClassName=Filter&filter_id[]=179&filter_value[]=m0300&SortCriteria=top";
		else if (position.x > 297 && position.y > 473 && position.x < 453 && position.y < 570)
			document.location.href="http://www.frontlineshop.com/index.php?screen=me.category&PageSize=128&ClassName=Filter&action=insert&ClassName=Filter&filter_id[]=179&filter_value[]=m0270&SortCriteria=top&SortCriteria=top";
		else if (position.x > 54 && position.y > 577 && position.x < 167 && position.y < 708)
			document.location.href="http://www.frontlineshop.com/index.php?screen=me.category&PageSize=128&ClassName=Filter&action=insert&ClassName=Filter&filter_id[]=179&filter_value[]=m0200&filter_id[]=146&filter_value[]=Beanie&SortCriteria=top";
		else if (position.x > 209 && position.y > 577 && position.x < 263 && position.y < 710)
			document.location.href="http://www.frontlineshop.com/index.php?screen=me.category&SortCriteria=top&PageSize=128&filter_id[]=179&filter_value[]=m0240&action=insert&ClassName=Filter&SortCriteria=top";
		else if (position.x > 307 && position.y > 593 && position.x < 427 && position.y < 703)
			document.location.href="http://www.frontlineshop.com/index.php?screen=me.category&PageSize=128&ClassName=Filter&action=insert&ClassName=Filter&filter_id[]=179&filter_value[]=m0200&filter_id[]=146&filter_value[]=Gloves&SortCriteria=top";
		else if (position.x > 457 && position.y > 522 && position.x < 746 && position.y < 708)
			document.location.href="http://www.frontlineshop.com/index.php?screen=me.category&PageSize=128&filter_id[]=179&filter_value[]=m0500&action=insert&ClassName=Filter&SortCriteria=top";

	} // if (Gender == 'Men')

	if (Gender == 'Women')
	{
		if (position.x > 53 && position.y > 323 && position.x < 293 && position.y < 484)
			document.location.href="http://www.frontlineshop.com/index.php?screen=wo.category&PageSize=128&ClassName=Filter&action=insert&ClassName=Filter&filter_id[]=179&filter_value[]=w0300&SortCriteria=top";
		else if (position.x > 436 && position.y > 321 && position.x < 546 && position.y < 517)
			document.location.href="http://www.frontlineshop.com/index.php?screen=wo.category&PageSize=128&ClassName=Filter&action=insert&ClassName=Filter&filter_id[]=179&filter_value[]=w0200&filter_id[]=146&filter_value[]=Scarfs&SortCriteria=top";
		else if (position.x > 620 && position.y > 350 && position.x < 741 && position.y < 442)
			document.location.href="http://www.frontlineshop.com/index.php?screen=wo.category&PageSize=128&ClassName=Filter&action=insert&ClassName=Filter&filter_id[]=179&filter_value[]=w0200&filter_id[]=146&filter_value[]=Beanie&SortCriteria=top";
		else if (position.x > 127 && position.y > 528 && position.x < 270 && position.y < 567)
			document.location.href="http://www.frontlineshop.com/index.php?screen=wo.category&PageSize=128&ClassName=Filter&action=insert&ClassName=Filter&filter_id[]=179&filter_value[]=w0240&SortCriteria=top";
		else if (position.x > 611 && position.y > 465 && position.x < 747 && position.y < 524)
			document.location.href="http://www.frontlineshop.com/index.php?screen=wo.category&PageSize=128&ClassName=Filter&action=insert&ClassName=Filter&filter_id[]=179&filter_value[]=w0200&filter_id[]=146&filter_value[]=Belt&SortCriteria=top";
		else if (position.x > 115 && position.y > 581 && position.x < 269 && position.y < 672)
			document.location.href="http://www.frontlineshop.com/index.php?screen=wo.category&PageSize=128&ClassName=Filter&action=insert&ClassName=Filter&filter_id[]=179&filter_value[]=w0270&SortCriteria=top";
		else if (position.x > 361 && position.y > 585 && position.x < 472 && position.y < 680)
			document.location.href="http://www.frontlineshop.com/index.php?screen=wo.category&PageSize=128&ClassName=Filter&action=insert&ClassName=Filter&filter_id[]=179&filter_value[]=w0230&SortCriteria=top";
		else if (position.x > 541 && position.y > 560 && position.x < 733 && position.y < 701)
			document.location.href="http://www.frontlineshop.com/index.php?screen=wo.category&PageSize=128&ClassName=Filter&action=insert&ClassName=Filter&filter_id[]=179&filter_value[]=w0200&filter_id[]=146&filter_value[]=Gloves&SortCriteria=top";

	} // if (Gender == 'Women')

} // function linkClicked(Gender)

function CheckNumber(keyvalue)
{
	var field_length = keyvalue.value.length-1;
	var last_key = keyvalue.value.substr(field_length,1);
	
	if (last_key != '0' && last_key != '1' && last_key != '2' && last_key != '3' && last_key != '4' && last_key != '5' && last_key != '6' && last_key != '7' && last_key != '8' && last_key != '9')
		keyvalue.value = keyvalue.value.substr(0,field_length);
} // function CheckNumber(keyvalue)