<!--

window.title = "Mercedes-Benz The C-Class"

function openWin(url, identifier, width, height)
{
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;

	var win = window.open(url, identifier, 'left='+winl+', top='+wint+', width=' + width + ', height=' + height + ', scrollbars=1, toolbar=0, menubar=0, status=0, location=0');
	if (!win) 	alert('ÆË¾÷ÀÌ Â÷´ÜµÇ¾î ÀÖ½À´Ï´Ù. ÆË¾÷À» Çã¿ëÇØÁÖ¼¼¿ä.');
	win.focus();
	return win;
}

function initPage()
{
	//handleScroll();

	if (getQueryParamValue('flasherror') == 1)
	{
		//document.getElementById('content').style.display = 'none';
		//document.getElementById('mContents_Flash').style.display = 'block';
	}
	else
	{
		var flashcontent = new FlashObject('preloader.swf', "mainfl", 1000, 450, 8, "#000000" , false, 'high', '','index.html?flasherror=1', 'detectflash');

		flashcontent.addParam('quality', 'high');
		flashcontent.addParam('style', 'margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;');
		flashcontent.addParam('menu', 'false');
        flashcontent.addParam('allowscriptaccess', 'always');

		flashcontent.addVariable('lang', lang);
        flashcontent.addVariable('contentPath', contentPath);
        flashcontent.addVariable('customSendEvent', customSendEvent);

		flashcontent.write('mContents_Flash');
	}
}

function makeRemote()
{
	remote=window.open('','remotewin', 'width=1000, height=592');
	remote.location.href = 'main.html'; //»õÃ¢ÀÇÁÖ¼Ò
}

function OpenWin2(theURL, winName, sBar)
{
	var w = 440;
	var h = 450;
	var baseURL = "http://www.mercedes-benz.co.kr/content/korea/mpc/mpc_korea_website/kr/mpc_splashpage/home/disclaimer/";
	theURL = baseURL+theURL;

	window.open(theURL,winName,'toolbar=no,location=no,status=no,menubar=no,scrollbars='+sBar+',resize=no,width='+w+',height='+h+'');
}

//-->

