function menu(d1,d2){
	var d1,d2;
	switch (d1) {
	case 1: //Sincerely Yours
		switch (d2){
		case 1://Event Info
			document.location.href='/cz/yours/eventinfo.asp';
			break;
		case 2://Viral Films
			document.location.href='/cz/yours/viralfilms.asp';
			break;
		case 3://Winners
			document.location.href='/cz/yours/winners.asp';
			break;
		case 4://Pixel Soldiers
			document.location.href='/cz/yours/pixelsoldiers.asp';
			break;
		default:
			document.location.href='/cz/yours/eventinfo.asp';
		}
		break;
	case 2: //Entertainment
		switch (d2){
		case 1://Widget
			document.location.href='/cz/entertain/widget.asp';
			break;
		case 2://Wallpaper/Screensaver
			document.location.href='/cz/entertain/wallpaper.asp';
			break;
		case 3://Mobile
			document.location.href='/cz/entertain/mobile.asp';
			break;
		default:
			document.location.href='/cz/entertain/widget.asp';
		}
		break;
	case 3: //LED Monitor
		switch (d2){
		case 1://E40/E50/Mx80D
			document.location.href='/cz/led/leds.asp';
			break;
		case 2://Event Coupon
			document.location.href='/cz/led/eventcoupon.asp';
			break;
		default:
			document.location.href='/cz/led/leds.asp';
		}
		break;
	case 4: //ETC
		switch (d2){
		case 1://Contact us
			document.location.href='/cz/etc/contactus.asp';
			break;
		case 2://Privacy
			document.location.href='/cz/etc/privacy.asp';
			break;
		case 3://Legal
			document.location.href='/cz/etc/legal.asp';
			break;
		case 4://Sitemap
			document.location.href='/cz/etc/sitemap.asp';
			break;
		default:
			document.location.href='/cz/etc/privacy.asp';
		}
		break;
	default:
		document.location.href='/cz/';
	}
}


function footerLink1(code){
	var code;
	switch (code){
	case 1://privacy
		document.location.href='/cz/etc/privacy.asp';
		break;
	case 2://legal
		document.location.href='/cz/etc/legal.asp';
		break;
	case 3://sitemap
		document.location.href='/cz/etc/sitemap.asp';
		break;
	case 4://contact us
		document.location.href='/cz/etc/contactus.asp';
		break;
	default:
		document.location.href='/cz/etc/privacy.asp';
	}
}

function footerLink2(code){
	var code;
	switch (code){
	case 1://product info
		menu(3,1);
		break;
	case 2://search branch
		document.getElementById('buyLayer').className='buy-layer show';
		document.getElementById('buyLayer').focus();
		buyLayerResize('buyLayer');
		break;
	default:
		menu(3,1);
	}
}
	function buyLayerResize(ele)
	{
		if(document.body.clientHeight < 650)
		{
			$(ele).style.height = "650px";
		}
		else
		{
			var hei = document.body.clientHeight;
			$(ele).style.height = hei + "px";
		}
		st = setTimeout ("buyLayerResize('" + ele + "')",500);
	}

	function buyLayerClose(){
		clearTimeout(st);
		$('buyLayer').className='buy-layer hide';
	}

function productGo(s1,s2){
	var s1, s2;
	switch (s1) {
	case 1:
		if (s2=='1'){ //E40 자세히 보기
			alert('E40 자세히 보기');
		} else { //E40 Where to buy
			document.getElementById('buyLayer').className='buy-layer show';
			document.getElementById('buyLayer').focus();
			buyLayerResize('buyLayer');
		}
		break;
	case 2:
		if (s2=='1'){ //E50 자세히 보기
			alert('E50 자세히 보기');
		} else { //E40 Where to buy
			document.getElementById('buyLayer').className='buy-layer show';
			document.getElementById('buyLayer').focus();
			buyLayerResize('buyLayer');
		}
		break;
	case 3:
		if (s2=='1'){ //Mx80D 자세히 보기
			alert('Mx80D 자세히 보기');
		} else { //E40 Where to buy
			document.getElementById('buyLayer').className='buy-layer show';
			document.getElementById('buyLayer').focus();
			buyLayerResize('buyLayer');
		}
		break;
	default:
	
	}
}


function goMain(){//logo
	document.location.href='/cz/';
}

function goHow(){//how to join
	document.location.href='/cz/yours/eventinfo.asp';
}

function goUpdate(){//register
	//regEvent_Open ("cz");
	alert("Akce skončila.");
}

function goInfo(){//go to Entry Rule
	window.open('/cz/yours/eventinfo.asp?fntab=tab02','','');
}

function goGift(){//gift
	giftEvent_Open ("cz");	
}

function goBanner(){//main banner
	document.location.href='/cz/entertain/mobile.asp';
}

function goGiftDetailView(){//
	window.open('http://www.volkswagen.cz/','','');
}

function swfPlayer(code){//Viral Films SWF Player
	var viralfilms=document.getElementById('viralfilmsFla');
	viralfilms.flvLoad('/cz/flash/flv/'+code+'.flv');
}




