

//-----------------------------------
// Window open
//-----------------------------------
/* Inquiery */
function openInquery()
{
    //window.open("/static/inquerytxt.html","","resizable=1,menubar=1,width=500,height=400");
    window.open("/inquiry", "", "resizable=1,scrollbars=1,menubar=1,width=900,height=650");
}

/* Guide, Q＆A */
function openGuides(jumpURL)
{
	window.open(jumpURL, "newWin", "resizable=1,scrollbars=1,menubar=1,width=900,height=650");
}

/* FlashEvent */
function movePetaPage(url){
    if(url && (url.indexOf("/") == 0 || url.indexOf("http") == 0)){
        location.href = url;
    }
}

//-----------------------------------
// Top Flash Version Check
//-----------------------------------
// スクリプトフォルダのパス
var scriptPath = "/common/js/lib/";
// グローバル
// Flash のメジャーバージョンが必要です
var requiredMajorVersion = 8;
// Flash のマイナーバージョンが必要です
var requiredMinorVersion = 0;
// 必要な Flash のバージョン
var requiredRevision = 0;


AC_FL_RunContent = 0;

document.write('<script src="' + scriptPath + 'AC_OETags.js" type="text/javascript"></script>');
document.write('<script language="VBScript" type="text/vbscript" src="' + scriptPath + 'AC_VBHelper.vbs"></script>');
document.write('<script language="JavaScript1.1" type="text/javascript" src="' + scriptPath + 'AC_VersionCheck.js"></script>');




//-----------------------------------
// CSS Browser Selector
//-----------------------------------
// CSS Browser Selector   v0.2.5
// Documentation:         http://rafael.adm.br/css_browser_selector
// License:               http://creativecommons.org/licenses/by/2.5/
// Author:                Rafael Lima (http://rafael.adm.br)
// Contributors:          http://rafael.adm.br/css_browser_selector#contributors
var css_browser_selector = function() {
    var
            ua = navigator.userAgent.toLowerCase(),
            is = function(t) {
                return ua.indexOf(t) != -1;
            },
            h = document.getElementsByTagName('html')[0],
            b = (!(/opera|webtv/i.test(ua)) && /msie (\d)/.test(ua)) ? ('ie ie' + RegExp.$1) : is('gecko/') ? 'gecko' : is('opera/9') ? 'opera opera9' : /opera (\d)/.test(ua) ? 'opera opera' + RegExp.$1 : is('konqueror') ? 'konqueror' : is('applewebkit/') ? 'webkit safari' : is('mozilla/') ? 'gecko' : '',
            os = (is('x11') || is('linux')) ? ' linux' : is('mac') ? ' mac' : is('win') ? ' win' : '';
    var c = b + os + ' js';
    h.className += h.className ? ' ' + c : c;
}();


//-----------------------------------
// Footer Copyright
//-----------------------------------

function copyright() {
    myD = new Date();
    myYear = myD.getYear();
    if (myYear < 2000) {
        myYear += 1900;
    }
    document.write("Copyright ", myYear, " Sony Marketing (Japan) Inc.");
}

//-----------------------------------
// Clear Text field
//-----------------------------------
function clearTEXT(thefield) {
	if ( thefield.defaultValue == thefield.value )
	thefield.value = ""
}
