//###################### swf play ###############################
function swf(fw,fh,_src,vars,STYLE,ALIGN){
	html = '';
	html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+fw+'" height="'+fh+'" align="'+ALIGN+'" style="'+STYLE+'">\n';
	html += '<param name="allowScriptAccess" value="always" />';
	html += '<param name="movie" value="'+_src+'" />\n';
	html += '<param name="quality" value="high" />\n';
	html += '<param name="scale" value="noScale" />\n';
	html += '<param name="flashvars" value="'+vars+'" />\n';
	html += '<param name="wmode" value="transparent" />';
	html += '<embed src="'+_src+'" wmode="transparent" flashvars="'+vars+'" wmode="transparent" quality="high" width="'+fw+'" height="'+fh+'" align="'+ALIGN+'" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n';
	html += '</object>\n';
	document.write(html);
}

//#################### GET规侥 函荐 贸府 ################################
var JSQueryString = new Object;

var requestedUrl = window.location.toString();
var arrRef = requestedUrl.split("?");
var strQueryString = "";
if(arrRef.length > 1){
   strQueryString = arrRef[1];
}

var arrQS_values = strQueryString.split("&");

for(var i=0;i<arrQS_values.length;i++){
   var arrPair = arrQS_values[i].split("=");
   JSQueryString[arrPair[0]] = decodeURI(arrPair[1]);
}
//#############################################################


//##################### footer selectbox #########################
function goCountry()
{

  var obj = document.sel_country.country;
  var url  = obj.options[obj.selectedIndex].value;
  var name = obj.options[obj.selectedIndex].text;

  if(url!="")
  {
    var cookie = "";
    var code = "0";

    if(url=="http://uk.samsungmobile.com") cookie = "gbr";
    if(url=="http://fr.samsungmobile.com") cookie = "fra";
    if(url=="http://de.samsungmobile.com") cookie = "ger";
    if(url=="http://it.samsungmobile.com") cookie = "ita";
    if(url=="http://es.samsungmobile.com") cookie = "esp";
    if(url=="http://ae.samsungmobile.com") cookie = "mea";
    if(url=="http://www.samsungmobile.com.cn") cookie = "chi";
    if(url=="http://www.anycall.com") cookie = "kor";
    if(url=="http://www.samsungmobile.com.hk") cookie = "hongkong";
    if(url=="http://mobile.samsung.ru") cookie = "russia";
    if(url=="http://mobile.samsungusa.com") cookie = "usa";
    if(url=="http://nl.samsungmobile.com") cookie = "nld";
    if(url=="http://be.samsungmobile.com") cookie = "bel";
	if(url=="http://pt.samsungmobile.com") 		cookie = "prt";
	if(url=="http://mx.samsungmobile.com") 		cookie = "mex";
	if(url=="http://br.samsungmobile.com") 		cookie = "bra";
	if(url=="http://za.samsungmobile.com") cookie = "zaf";
	if(url=="http://europe.samsungmobile.com") cookie = "other_eng";
	if(url=="http://gr.samsungmobile.com") cookie = "grc";
    if(url=="http://www.samsungmobile.com")
    { 
		code = "1";
    }
    	document.location.href = "http://uk.samsungmobile.com/include/goIntro.jsp?url="+url+"&code="+code;
	
  }
}


//##################### service selectbox #########################

function goservice(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}


//################## phone select ###########################
function byselect(sel, targetstr)
{
  var index = sel.selectedIndex;
  if (sel.options[index].value != '') {
     if (targetstr == 'blank') {
       window.open(sel.options[index].value, 'win1');
     } else {
       var frameobj;
       if (targetstr == '') targetstr = 'self';
       if ((frameobj = eval(targetstr)) != null)
         frameobj.location = sel.options[index].value;
     }
  }
}

//###################  scroll ##########################
function fix(){
	var a = document.body.scrollTop+343;
	bn_top.style.top = a;
}