//global navigation
home="http://www.b2b.samsung.pl/";
products="http://www.b2b.samsung.pl/produkty.php";
priv="http://www.samsung.com/pl/etc/privacy.htm";
legal="http://www.samsung.com/pl/etc/legal_notice.htm";
sitemap="#";

/*
function GoUrl(Str) {
location.href=eval(Str);
}
*/
function GoUrl(name, win) {
if (eval(name) == "") {
alert("sorry.");
return;
} else {
if (win == null) {
document.location.href = eval(name);
} else {
window.open(eval(name), win);
}
}
}

// Style Sheet //
/*
function setStyle(){
if (navigator.appName.indexOf('Microsoft') != -1){
var browser = "IE"
} else {
var browser = "NS"
}
if (browser == "IE"){
document.write('<LINK REL=stylesheet TYPE=text/css HREF=/TR/module/CSS/global.css>')
}
else if (browser == "NS") {
document.write('<LINK REL=stylesheet TYPE=text/css HREF=/TR/module/CSS/global_ns.css>')
}
}
setStyle()
*/
//Main Menu RollOver
function ImgPreLoad(imgTitle, imageNum) {
imageNum++;
rollOver = new Array(imageNum);
rollOut = new Array(imageNum);
for (j = 1; j <= imageNum; j++) {
if (j < 10) {
retmp = "_0";
} else {
retmp ="_";
}
rollOver[j] = new Image();
rollOver[j].src = imgTitle + retmp + j + "_on.gif";
rollOut[j] = new Image();
rollOut[j].src = imgTitle + retmp + j + "_off.gif";
}
}

function imgOver(Number) {
if (rollOver[Number] != null) {
document["w"+Number].src = rollOver[Number].src;
}
}

function imgOut(Number) {
if (rollOver[Number] != null) {
if (Number != _MCurrentOn) {
document["w"+Number].src = rollOut[Number].src;
}
}
}

function go_link(frmJump) {
var myindex=frmJump.cmbSel.selectedIndex
if (frmJump.cmbSel.options[myindex].value != null) {
document.location.href = frmJump.cmbSel.options[myindex].value;
}
}
// New Window
function go_link2(frmJump) {
var myindex=frmJump.cmbSel.selectedIndex
if (frmJump.cmbSel.options[myindex].value != null) {
window.open(frmJump.cmbSel.options[myindex].value);
}
else {
document.location.href = frmJump.cmbSel.options[myindex].value;
}
}

function popup(Fn, X, Y, Scroll){
l = (screen.width) ?	(screen.width-550) / 2	: 0;
t = (screen.height) ?	(screen.height-400) / 2 : 0;
NewWindow=window.open(Fn,'newwindow','width='+X+',height='+Y+',top='+t+',left='+l+',scrollbars='+Scroll+',toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no');
}


function QuickTour() {
window.open('/pl/aboutsamsung/at_a_glance/at_a_glance.htm', 'quick', 'width='+780+',height='+520+',scrollbars=no, marginwidth=0, marginheight=0, border=0');
}

function History_samsung() {
window.open('/pl/aboutsamsung/history/history_e.htm', 'quick', 'width='+760+',height='+389+',scrollbars=no, marginwidth=0, marginheight=0, border=0');
}

function History_SECHallTour() {
window.open('/pl/aboutsamsung/history/hall_tour.htm', 'quick', 'width='+560+',height='+700+',scrollbars=no, marginwidth=0, marginheight=0, border=0');
}

function ContactUs(){
window.open('http://mail.samsungelectronics.com/secmail/contact_pl.html','new','scrollbars=yes,resizable=no,toolbar=no,location=no,directories=no,status=no,resizable=no,menubar=no, width=580,height=650');
}

//Flash function
//function WriteSwf(img,wsize,hsize){
//	document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\""+wsize+"\" height=\""+hsize+"\">");
//    document.write("<param name=\"movie\" value=\""+img+"\">");
//    document.write("<param name=\"quality\" value=\"high\">");
//    document.write("<param name=\"wmode\" value=\"transparent\">");
//    document.write("<embed src=\""+img+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+wsize+"\" height=\""+hsize+"\"></embed>");
//	document.write("</object>");
//}


function WriteSwf(img,wsize,hsize){
document.write("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\""+wsize+"\" height=\""+hsize+"\">");
document.write("<param name=\"movie\" value=\""+img+"\">");
document.write("<param name=\"quality\" value=\"high\">");
document.write("<param name=wmode value=transparent>");
document.write("<embed src=\""+img+"\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+wsize+"\" height=\""+hsize+"\"></embed>");
document.write("</object>");
}


function WriteMov(img,wsize,hsize){
var agent = navigator.userAgent.toLowerCase();
if (agent.indexOf("msie") <0){

document.write("<object ID=\"MediaPlayer\">");
document.write("<embed name=\"MediaPlayer\" SRC=\""+img+"\" quality=\"high\" WIDTH="+wsize+" height="+hsize+"  align=\"middle\" allowscriptaccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\">");
document.write("</object>");

}
else
{
document.write("<OBJECT ID=\"MediaPlayer\" WIDTH="+wsize+" HEIGHT="+hsize+" ");
document.write("CLASSID=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\"");
document.write("STANDBY=\"Loading Windows Media Player components...\" ");
document.write("TYPE=\"application/x-oleobject\">");
document.write("<PARAM NAME=\"FileName\" VALUE=\""+img+"\">");
document.write("<PARAM NAME=\"autoStart\" VALUE=\"true\">");
document.write("<PARAM NAME=\"showControls\" VALUE=\"false\">");
document.write("<EMBED TYPE=\"application/x-mplayer2\" SRC=\""+img+"\"");
document.write("  autoStart=1");
document.write("  showControls=0");
document.write(" NAME=\"MediaPlayer\"");
document.write(" WIDTH="+wsize+"");
document.write(" HEIGHT="+hsize+"");
document.write(" PLUGINSPAGE=\"http://www.microsoft.com/windows/windowsmedia/download/\">");
document.write("</EMBED>");
document.write("</OBJECT>"); 
} 

}
