function flwrite(src, width, height) {
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + width + '" height="' + height + '" title="">');
    document.write('<param name="movie" value="' + src + '" />');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="allowScriptAccess" value="always">');
    //document.write('<param name="wmode" value="opaque" />');
    //document.write('<embed wmode="opaque" src="' + src + '" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' +  height + '"></embed>');
    document.write('<embed src="' + src + '" quaity="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width + '" height="' +  height + '" allowScriptAccess=always ></embed>');
    document.write('</object>');
}

function OpenCategory(n){
    if(document.all){
        menu = document.all(n);
        flag = menu.style.display;
        if(flag == "block"){
            menu.style.display = "none";
            document.cookie=n+"=0; expires=Thu, 1-1-2099 0:0:0; path=/;";
        }
        else{
            menu.style.display = "block";
            document.cookie=n+"=1; expires=Thu, 1-1-2099 0:0:0; path=/;";
        }
        
    }
    else if(document.getElementById){
        menu = document.getElementById(n);
        flag = menu.style.display;
        if(flag == "block"){
            menu.style.display = "none";
            document.cookie=n+"=0; expires=Thu, 1-1-2099 0:0:0; path=/;";
        }
        else{
            menu.style.display = "block";
            document.cookie=n+"=1; expires=Thu, 1-1-2099 0:0:0; path=/;";
        }
        
    }
}

function win_open(url, name, width, height){
	var subWin = window.open(url, name, 'width=' + width + ',height=' + height + ',location=yes,resizable=yes,scrollbars=yes');
    
    var check = ((navigator.appName.charAt(0) == "M") && (navigator.appVersion.charAt(0) <= 3));
    
    if (!check) {subWin.focus();}
}

function go_contact(url, target){
    location.href = url + '/contact/product/' + target;
}

function mailmaga_msg(msg){
    if (msg !="") {
        alert(msg);
    }
}
