function loadFlash(movie){
	AC_FL_RunContent(
		'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
		'width', '1168',
		'height', '772',
		'src', 'uploads/tx_rbflashobject/'+movie+'.swf',
		'quality', 'high',
		'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
		'align', 'middle',
		'play', 'true',
		'loop', 'true',
		'scale', 'showall',
		'wmode', 'transparent',
		'devicefont', 'false',
		'id', 'bg_home',
		'name', movie,
		'menu', 'true',
		'allowFullScreen', 'false',
		'allowScriptAccess','sameDomain',
		'movie', movie,
		'salign', ''
	); //end AC code
}

function chkForm_uk(form) {
	var tmp = 0;
  var radio = 0;
	
	if (document.getElementById('fname').value == '' || document.getElementById('fname').value == 'Please complete'){
		tmp ++;
		document.getElementById('fname').className = 'input_l_err';
		document.getElementById('fname').value = 'Please complete';
	}
	if (document.getElementById('name').value == '' || document.getElementById('name').value == 'Please complete'){
		tmp ++;
		document.getElementById('name').className = 'input_l_err';
		document.getElementById('name').value = 'Please complete';
	}		
	if (document.getElementById('email').value == '' || document.getElementById('email').value == 'Please complete'){
		tmp ++;
		document.getElementById('email').className = 'input_l_err';
		document.getElementById('email').value = 'Please complete';
	}			
	if(tmp == '0'){
		document.getElementById(form).submit();
	}
}

function resetStatus(id, classname){
	el = document.getElementById(id)
	el.className = classname;
	if(id == 'comment'){
		el.innerHTML = '';
	}else{		
		el.value = '';
	}
}

// JavaScript Document


function writeNaviSwf(param, lang) {
	document.write("<embed src=\"fileadmin/gfx/swf/navi_" + lang + ".swf?active=" + param + "\" quality=\"high\" width=\"740\" height=\"71\" wmode=\"transparent\"></embed>");
}

function goUrl(alias) {
	document.location.href = "index.php?id=" + alias;
}

function writeHomeSwf(name, w, h) {
	document.write("<embed src=\"fileadmin/gfx/swf/" + name + "\" quality=\"high\" width=\"" + w + "\" height=\"" + h + "\" wmode=\"transparent\"></embed>");
}

function writeSwf(name, w, h) {
	document.write("<embed src=\"fileadmin/gfx/swf/" + name + "\" quality=\"high\" width=\"" + w + "\" height=\"" + h + "\" wmode=\"transparent\"></embed>");
}

function writeOptions(id){
	switch (id) {
		case 'de': 
			window.location = "http://de.mobiletv.samsungmobile.com";
			break;
		case 'uk': 
			window.location = "http://de.mobiletv.samsungmobile.com";
			break;
		case 'it': 
			window.location = "http://it.samsungmobile.com";
			break;
		case 'fr': 
			window.location = "http://fr.mobiletv.samsungmobile.com";
			break;
		case 'es': 
			window.location = "http://es.mobiletv.samsungmobile.com";
			break;
		case 'ru': 
			window.location = "http://ru.samsungmobile.com";
			break;			
	}
}

function selectShow(Name)	{
	selectObj = document.getElementById(Name);
	selectObj.style.display='block';
}

function selectHide(Name)	{
	selectObj = document.getElementById(Name);
	selectObj.style.display='none';
}
function otherSiteGoPage(goPage){		
	window.location = goPage;
}	