// JavaScript Document
bur = {
	displayEmailSignup: function() {
		$('hdrIframe').src = "http://f.chtah.com/s/34/355228347/burberry_subs6.html";
		$("emailFrame").style.display="block";
		setInterval('$("closeEmail").style.display="block";',200);
	
	},
	hideEmailSignup: function() {
		$("emailFrame").style.display="none";
	},
	popWindow: function(url, width, height) {
		if(width){}else{
			width=500;
		}
		if(height){}else{
			height=450;
		}
		window.open(url,"burPop", "menubar=no,width="+width+",height="+height+",toolbar=no,resizable=yes,scrollbars=yes");
	}
}

document.observe('dom:loaded',function(e){
/*	Doesn't work with current home page CMS campaign...
	if($('footerChangeRegionSelect') && $('regionSelectButton')) {
		Event.observe($('footerChangeRegionSelect'),'change',function() {
			$('regionSelectButton').href = $("footerChangeRegionSelect").options[$("footerChangeRegionSelect").selectedIndex].value;
		});
	}
*/
	if($('goSearch')) {
		$('goSearch').href = "javascript:$('headerSearch').submit()";
	}
	/*if($("closeEmail")) {
		$("closeEmail").href = "javascript:bur.hideEmailSignup();";
	}*/
	if($("emailSignupLink")) {
		$("emailSignupLink").href = "javascript:bur.displayEmailSignup();";
	}

	/*$("search-box").observe('focus', function(e) {
		if(this.value=='Product Search')this.value='';});*/


	var msg = "Right-click functionality is disabled on "+WebDNSNAME+" images!";
	if(document.images)
	{
		for(i=0;i<document.images.length;i++)
			{
				document.images[i].msg = msg;
				document.images[i].oncontextmenu=new Function("alert(this.msg);return false")
			}
	}
	contextMenuFlag =true;
	document.body.oncontextmenu=null;


});

