		var _url = "";
		var conuid = (new Date).getTime();
		function conUid() { return conuid; }
		var flashvars = {};
		var params = {};
        var attributes = {id:"swf"}; // give an id to the flash object
//		params.wmode = "transparent";
//		params.wmode = "opaque";
		params.wmode = "window";
		
		swfobject.embedSWF("ch2010Home.swf", "mFlash", "100%", "2800", "9.0.0", "expressInstall.swf",flashvars,params,attributes);
		
		var jsReady = false;
		function isJSReady() {
			return jsReady;
		}
		function pageInit() {
			jsReady = true;
		}
		
		function getFlashMovieRef(movieName) {
			if (navigator.appName.indexOf("Microsoft") != -1) {
				return window[movieName];
			} else {
				return document[movieName];
			}
		}
		
		function openShareOnPos(xp,yp,title) {
			//-- force title here
			$("#swf").attr("wmode", "opaque");
			if(title)_url = document.URL+"/#/"+title;
			$("#social").css({visibility:"visible",left:xp+"px",top:yp+"px"});
		}
		function closeShareOnPos(xp,yp) {
			$("#swf").attr("wmode", "window");
			$("#social").css({visibility:"hidden",left:0+"px",top:0+"px"});
		}
		
		function scrollToTop() {
			if($.browser.opera){
				$('html').animate({scrollTop: 0}, 500);
			} else $('html,body').animate({scrollTop: 0}, 500);
		}
		function trace(str){try{console.log(str);}catch(e){} }
		var minHeight=0;
		var winW=0;
		var winH=0;
		var pageHeight = 0;
		$(document).ready(function() {
			pageInit();
			wResize();
		});
		$(window).resize(wResize);
		function wResize() {
			winW=$(window).width();
			winH=$(window).height();
			var eH = (winH);
			if(pageHeight > eH) eH = pageHeight;
//			$("#mFlash").css({height:eH+"px"});
			$("#mFlash").height(eH);
			_url = document.URL;
		}
		function resizeIndexHeight(h)
		{
			var eH = parseInt(winH);
			if( h > eH )
			{
				eH = h;
			}
			trace("resizeIndexHeight : " + eH);
			$("#mFlash").css({height:eH+"px"});
		}
