arrTmp = new Number;
idTmp = new Number;
timer=Array();

function DisplayFlash(path, width, height, wmode){

    text = "<object type=\"application/x-shockwave-flash\" allowScriptAccess=\"always\" name=\"flash-container\" id=\"flash-container\" data=\""+path+"\" width=\""+width+"\" height=\""+height+"\" wmode=\""+wmode+"\" quality=\"high\">\r\n";
    text += "<param name=\"movie\"	value=\""+path+"\" />\r\n";
    text += "<param name=\"allowScriptAccess\" value=\"always\" />\r\n";    
    text += "<param name=\"wmode\" value=\""+wmode+"\" />\r\n";
    text += "<param name=\"quality\" value=\"high\" />\r\n";
    text += "<param name=\"width\" value=\""+width+"\" />\r\n";
    text += "<param name=\"height\" value=\""+height+"\" />\r\n";
    text += "</object>";
    document.write(text);
}

function DisplayFlashMain(path, width, height, wmode){

    text = "<object type=\"application/x-shockwave-flash\" allowScriptAccess=\"always\" data=\""+path+"\" width=\""+width+"\" height=\""+height+"\" wmode=\""+wmode+"\" quality=\"high\">\r\n";
    text += "<param name=\"movie\"	value=\""+path+"\" />\r\n";
    text += "<param name=\"allowScriptAccess\" value=\"always\" />\r\n";    
    text += "<param name=\"wmode\" value=\""+wmode+"\" />\r\n";
    text += "<param name=\"quality\" value=\"high\" />\r\n";
    text += "<param name=\"width\" value=\""+width+"\" />\r\n";
    text += "<param name=\"height\" value=\""+height+"\" />\r\n";
    text += "</object>";
    document.write(text);
}

function position() {
		
		
		var height = parseInt($('#bg-add').get(0).offsetHeight);
		var clientHeight = ( document.documentElement.clientHeight || document.body.clientHeight );
		if(($('#main').get(0).offsetHeight) <  clientHeight) {
			$('#main').css('height' , clientHeight + 'px');
			height = clientHeight;
			}
		if($('#left-bottom').get(0)) {
			$('#left-col').css('padding','0 0 300px 0');
			//alert($('#left-col').get(0).style.padding  ); //css('padding-bottom','300');
			$('#left-bottom').css('top', height - parseInt($('#left-bottom').get(0).offsetHeight) );
			$('#left-bottom').css('width', (((document.documentElement.clientWidth || document.body.clientWidth) > 1100)? "393px" : "293px") );
			$('#bg-add-3').css('background','url(/images/out-bg3.gif)  center bottom no-repeat');
			$('#left-bottom').css('display','block');
			}
		
		$('#gr-line').css('top', ( height - parseInt($('#gr-line').get(0).offsetHeight)) + 'px' );
		$('#gr-line').css('display','block');
		
		$('#main').css('width', (((document.documentElement.clientWidth || document.body.clientWidth) > 1100)? "1100px" : "1000px") );
		
		
		}
	window.onresize = function() { position(); }
	window.onscroll = function() { position(); }