<!--
var isIE = (navigator.appName.indexOf("Microsoft") > -1);
var d = document;
var contentW = 980;
var contentH = 600;
var innerH;
var innerW;


/*window.onload = function()
				{
					resizeDiv();
				}*/
window.onresize = function()
				{
					resizeDiv(true);
				}

function init()
{
	genSwf();
	setTimeout(function(){resizeDiv(false);}, 100);
}

function genSwf()
{
	var main = d.body;
	var homeSwf = createDiv("swfApp");
	//var img = createImg("http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif", "", "", "Get Adobe Flash player", "http://www.adobe.com/go/getflashplayer");
	//homeSwf.appendChild(img);
	main.appendChild(homeSwf);
	
	var flashvars = {};
	flashvars.swfPath = "swf/";
	flashvars.imagePath = "images/";
	flashvars.videoPath = "../images/video/";
	flashvars.xmlPath = "xml/";
	flashvars.musicPath = "music/";
	flashvars.shortCutType = document.URL.substring(document.URL.indexOf("?")+1, document.URL.indexOf("&"));
	flashvars.shortCutID = document.URL.substring(document.URL.indexOf("&")+1, document.URL.length);
	flashvars.hostname = "staccato.dclook.com%2Fss2010%2Fen%2F";
	
	var params = {};
	params.allowscriptaccess = "sameDomain";
	params.wmode = "window";
	
	var attributes = {};

	swfobject.embedSWF("swf/StaccatoMain.swf", "swfApp", "100%", "100%", "10", false, flashvars, params, attributes);
}

function resizeDiv(isResize, offsetY)
{	
	var main = d.getElementById("swfApp");
	
	if (offsetY == null)	offsetY = 0;
	
	innerH		= (isIE)	?	d.documentElement.clientHeight	:	d.documentElement.clientHeight;
	innerW		= (isIE)	?	d.documentElement.clientWidth	:	d.documentElement.clientWidth;
	//if (!isResize)	contentH	= (isIE)	?	d.body.scrollHeight	:	d.documentElement.scrollHeight;
	//if (!isResize)	contentH	= d.documentElement.scrollHeight;
	
	main.style.width	= (innerW < contentW)	?	(contentW + "px")	:	"100%";
	main.style.height	= (innerH < contentH)	?	(contentH + "px")	:	"100%";
	
	//d.body.style.overflow = (innerH < contentH || innerW < contentW)	?	'visible'	:	'hidden';
	
    //alert(innerH + "  :  " + contentH);
	//setDragPos(dragBtn, terms, false);
}

function NewWindow(mypage, myname, w, h, scroll, resizable) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+resizable+','
win = window.open(mypage, myname, winprops)
win.self.focus()
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    d.MM_pgW=innerWidth; d.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=d.MM_pgW || innerHeight!=d.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=d.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; d.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){d.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function createImg(src, alt, w, h, link, t, className)
{
	var img = d.createElement('img');
	if (src)	img.setAttribute('src', src);
	if (alt)	img.setAttribute('alt', alt);
	if (w)	img.setAttribute('width', w);
	if (h)	img.setAttribute('height', h);
	if (className)	img.className = className;
	
	if (link)
	{
		img.setAttribute('border', 0);
		
		var a = d.createElement('a');
		a.setAttribute('href', link);
		if (t && typeof(t) != 'undefined')	a.setAttribute('target', t);
		a.appendChild(img);
		return a;
	}
	else
	{	
		return img;
	}
}

function createA(link, t, txt, id, className)
{		
	var a = d.createElement('a');
	if (link)	a.setAttribute('href', link);
	if (t && typeof(t) != 'undefined')	a.setAttribute('target', t);
	
	//if (txt)	a.appendChild(d.createTextNode(txt));
	if (txt)	a.innerHTML = txt;
	if (id)	a.setAttribute('id', id);
	if (className)	a.className = className;
	
	return a;
}

function createDiv(id, className, txt)
{		
	var div = d.createElement('div');
	if (id)	div.setAttribute('id', id);
	if (className)	div.className = className;
	//if (txt)	div.appendChild(d.createTextNode(txt));
	if (txt)	div.innerHTML = txt;
	return div;
}

function createTag(tag, id, className)
{		
	var div = d.createElement(tag);
	if (id)	div.setAttribute('id', id);
	if (className)	div.className = className;
	return div;
}

function createInput(name, type, value, className)
{		
	var input = d.createElement('input');
	if (name)	input.setAttribute('name', name);
	if (type)	input.setAttribute('type', type);
	if (value)	input.setAttribute('value', value);
	if (className)	input.className = className;
	return input;
}

-->

