String.prototype.trim = function() { 
	return this.replace(/(^\s*)|(\s*$)/g, ""); 
}


/* ·Ñ¸µ ½ºÅ©¸³ **********************************************************************/
//1. 1.5ÃÊÀÇ ÀÎÅÍ¹úÀ» µÎ°í ÀÚµ¿·Ñ¸µ
//2. ÁÂ¿ìÃø ¹öÆ°À» ÅëÇØ ¼öµ¿À¸·Î µ¿ÀÛ°¡´É
//3. ¸¶¿ì½º ¿À¹ö½Ã ·Ñ¸µ¼ø°£¸ØÃã ¸¶¿ì½º¾Æ¿ô½Ã ·Ñ¸µ½ÃÀÛ

var Rolling=function(cid,count,interval,n) {
	this.cid = cid;
	this.count = count;	
	this.n = (n)?n:"1";
	this.onchange = null;

	for(var k=1; k<=this.count; k++) document.getElementById(this.cid+"_"+k).style.display="none";
	document.getElementById(this.cid+"_"+this.n).style.display="block";

	this.div = document.getElementById(this.cid);//ÀüÃ¼div
	this.div.onmouseover=function(){this.isover=true; }
	this.div.onmouseout=function() {this.isover=false;}
	this.btn_next = document.getElementById("btn_"+this.cid+"_next");
	this.btn_prev = document.getElementById("btn_"+this.cid+"_prev");

	var self=this;
	if(this.btn_next) this.btn_next.onclick=function(){self.next() }
	if(this.btn_prev) this.btn_prev.onclick=function(){self.prev() }
	if(interval>0) setInterval(function(){self.play()}, interval);
}
Rolling.prototype = {
	play : function() {
		if(this.div.isover) return;
		this.next();
	},
	change :function(){
		if(this.onchange) this.onchange();
	},
	prev :function(){
		document.getElementById(this.cid+"_"+this.n).style.display="none";
		this.n=(this.n==1)?this.count:--this.n;
		document.getElementById(this.cid+"_"+this.n).style.display="block";
		this.change();
	},
	next :function(){
		document.getElementById(this.cid+"_"+this.n).style.display="none";
		this.n=(this.n==this.count)? 1:++this.n;
		document.getElementById(this.cid+"_"+this.n).style.display="block";
		this.change();
	},
	random : function() {
		var rn=Math.round((this.count-1)*Math.random());
		for(var i=0;i<rn;i++) this.next();
	}
};

/* ·¹ÀÌ¾î SHOW/HIDE **********************************************************************/
function showdiv(targetEl, uniqid) {
	if(document.getElementById(targetEl)) document.getElementById(targetEl).style.display="block";
}
function hidediv(targetEl) {
	if(document.getElementById(targetEl)) document.getElementById(targetEl).style.display="none";
}

/* Header Tab **********************************************************************/
function tabHead(sw) {
	for (i = 1; i < 3; i++) {
		if (sw == i) {		
			document.getElementById().style.display='';
		} else {
			document.getElementById().style.display='none';
		}
	}
}

/* Header ·¹ÀÌ¾î º¸ÀÌ±â **********************************************************************/
function getStyle(el, style) {
	var value = el.style[style];
	if(!value)	{
		if(document.defaultView && document.defaultView.getComputedStyle) {
			var css = document.defaultView.getComputedStyle(el, null);
			value = css ? css[style] : null;
		} 
		else if (el.currentStyle) value = el.currentStyle[style];
	}
	return value == 'auto' ? null : value;
}
function toogle(targetId){
	var toogleTarget = document.getElementById(targetId);
	toogleTarget.style.display=(getStyle(toogleTarget,'display')=='none') ? 'block':'none';	

	/*
	toogleTarget.onmouseout = function(event) {
		var el = window.event ? window.event.srcElement : event.target;

		if(el && el == this) {
			this.style.display = 'none';
		}
	}
	*/
}
/************************************
function toogleImg(targetId){
	var targetTab = document.getElementById(targetId);
	var src = targetTab.src;
	src = (src.indexOf("_on.gif") > -1) ? 
	src.replace(/_on.gif/,'.gif') : src = src.replace(/.gif/,'_on.gif');
	targetTab.setAttribute("src",src);
}
************************************
function toogleInventory(targetId){
	//toogleImg(targetId);	
	toogle(targetId + "_open");
	var closeInventory = document.getElementById(targetId + "_open");
	var closeInventory = document.getElementById(targetId + "_close");
	closeInventory.onclick = function(){
		toogle(targetId + "_open");
		//toogleImg(targetId);
	}
}
*/
/* ¶óÀÎ¸Ê ½ºÅ¸ÀÏ **********************************************************************/
function selsRating(obj){
	var tobj = obj.parentNode;	
	var typeTxt = tobj.getElementsByTagName('label')[0].innerHTML;	
	document.getElementById('sType').innerHTML ="<p class='rating'>" + typeTxt + "</p>";					
	toogle("sTypeList");				
}
function selsRating1(obj){
	var tobj = obj.parentNode;	
	var typeTxt = tobj.getElementsByTagName('label')[0].innerHTML;	
	document.getElementById('sType1').innerHTML ="<p class='rating'>" + typeTxt + "</p>";					
	toogle("sTypeList1");				
}
function selsRating2(obj){
	var tobj = obj.parentNode;	
	var typeTxt = tobj.getElementsByTagName('label')[0].innerHTML;	
	document.getElementById('sType2').innerHTML ="<p class='rating'>" + typeTxt + "</p>";					
	toogle("sTypeList2");				
}
function selsRating3(obj){
	var tobj = obj.parentNode;	
	var typeTxt = tobj.getElementsByTagName('label')[0].innerHTML;	
	document.getElementById('sType3').innerHTML ="<p class='rating'>" + typeTxt + "</p>";					
	toogle("sTypeList3");				
}

/* ÆË¾÷¸®»çÀÌÁî **********************************************************************/
function resizePopup(w) {	
	var h=0;
	var Browser = new Object();	
	Browser.isIE = (navigator.userAgent.toLowerCase().indexOf("msie")!=-1);
	Browser.isIE_SV1 = (navigator.userAgent.toLowerCase().indexOf("sv1")!=-1);
	Browser.isIE_SV2 = (navigator.userAgent.toLowerCase().indexOf("sv2")!=-1);
	Browser.isIE_7 = (navigator.userAgent.toLowerCase().indexOf("msie 7")!=-1);
	Browser.isFirefox =	(navigator.userAgent.toLowerCase().indexOf("firefox")!=-1);
	Browser.isSafari =(navigator.userAgent.toLowerCase().indexOf("safari")!=-1);
	Browser.isOpera =(navigator.userAgent.toLowerCase().indexOf("opera")!=-1);
	Browser.isNetscape =(navigator.userAgent.toLowerCase().indexOf("netscape")!=-1);

	var popWrap = document.getElementsByTagName("body")[0];
	if(popWrap.className.indexOf("popType") > -1){
		var currentPopHeight = popWrap.offsetHeight;
		var popHeight = currentPopHeight + 35;			
		if(popHeight < 700){
			//var re_top = Math.floor((screen.height/2)-(popHeight/2)); //Áß¾Ó
			//var re_left = Math.floor((screen.width/2)-(w/2));//Áß¾Ó			
			if (Browser.isIE_SV1)	{ h = 14; } 
			else if(Browser.isIE_7)	{ h = 45; }
			else if(Browser.isEtc)	{ h = 22; } 
			else if(Browser.isFirefox)	{ h = 15; } 
			else if(Browser.isNetscape)	{ h = -2; }
			else if(Browser.isOpera)	{ h = 28; }										
			window.resizeTo(w+10,popHeight+h); //¸®»çÀÌÁî
			popWrap.setAttribute("scroll","no");
		}else{
			window.resizeTo(w+46,700);
			document.body.scroll = "yes";
		}
	}	
}


/* FAQ **********************************************************************/
var old_menu = '';
function changeLayer(getMenu) {
	var submenu = document.getElementById(getMenu);
	if( old_menu != submenu ) {
		if( old_menu !='' ) {
			old_menu.style.display = 'none';
		}
		submenu.style.display = 'block';
		old_menu = submenu;
	} else {
		submenu.style.display = 'none';
		old_menu = '';
	}
}

/* ÆË¾÷¶ç¿ì±â **********************************************************************/
function popUp(url,name){
	window.open(url,name,"width=455,height=300,left=0,top=0,scrollbars=yes")
}

/* iframeÀÚµ¿¸®»çÀÌÁî **********************************************************************/
function iframeResize(iframe_id) {
	var h = (self.innerHeight) ? document.documentElement.offsetHeight : document.body.scrollHeight;
	try{
		parent.document.getElementById(iframe_id).style.height = h+"px";
	}catch(e){}
}

/* ÅØ½ºÆ®Ä¿ÆÃ **********************************************************************/
function virtualTextCut(str,width){
	var virtualCutArea = document.createElement("div");
	var vs = virtualCutArea.style;
	virtualCutArea.id = "forTextCut";	
	vs.position = "absolute";	
	vs.left = -9999 +"px";
	document.body.appendChild(virtualCutArea);
	var cutDiv = document.getElementById('forTextCut');
	var isOver = false;
	cutDiv.innerHTML = str;		
	var returnStr = str;
	for (var i=0;i<str.length;i++){
		//alert("str.length:"+str.length + " cutDiv.offsetWidth:" + cutDiv.offsetWidth +" isOver:"+isOver);	
		if (cutDiv.offsetWidth > width){			
			cutDiv.innerHTML = str.substr(0,str.length-i);			
			isOver = true;
		} else {
			returnStr = cutDiv.innerHTML;
			if (isOver)	{
				return returnStr+'..';
			}
			else return returnStr;
		}
	}
	return returnStr;	
}

function textTrim(id,width,term){
	var texts = document.getElementById(id).getElementsByTagName('a');
	var textsLi = document.getElementById(id).getElementsByTagName('li');	
	for (var t=0 ; t < texts.length ; t++){		
		if(texts[t].parentNode.nodeName == "LI"){//Ä«Å×°í¸® Á¦¸ñÀº Á¦¿Ü			
			var tempWidth = width || texts[t].parentNode.offsetWidth - term
			texts[t].setAttribute("title",texts[t].innerHTML);
			texts[t].innerHTML = virtualTextCut(texts[t].innerHTML,tempWidth);
			//alert(texts[t].innerHTML.indexOf(".."));
			
		}
	}
}

/* ÅØ½ºÆ® ÀÌ¹ÌÁö Á¡¼±Å×µÎ¸® ¾ø¾Ö±â **********************************************************************/
function bluring(){ 
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 

function Onclick_Href(url){
	location.href=url;
}

/* flashWrite(ÆÄÀÏ°æ·Î, °¡·Î, ¼¼·Î[, º¯¼ö][,¹è°æ»ö][,À©µµ¿ì¸ðµå]) ****************************/
function flashWrite(url,w,h,vars,bg,win){
	
	var id=url.split("/")[url.split("/").length-1].split(".")[0]; //id´Â ÆÄÀÏ¸íÀ¸·Î ¼³Á¤
	if(vars==null) vars='';
	if(bg==null) bg='#FFFFFF';
	if(win==null) win='transparent';


	// ÇÃ·¡½Ã ÄÚµå Á¤ÀÇ
	var flashStr= "	<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'";
		flashStr+="			codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,124,0'";
		flashStr+="			width='"+w+"'";
		flashStr+="			height='"+h+"'";
		flashStr+="			id='"+id+"'";
		flashStr+="			align='middle'>";

		flashStr+="		<param name='allowScriptAccess' value='always' />";
		flashStr+="		<param name='movie' value='"+url+"' />";
		flashStr+="		<param name='FlashVars' value='"+vars+"' />";
		flashStr+="		<param name='wmode' value='"+win+"' />";
		flashStr+="		<param name='menu' value='false' />";
		flashStr+="		<param name='quality' value='high' />";
		flashStr+="		<param name='bgcolor' value='"+bg+"' />";
		flashStr+="		<param name='scale' value='noscale' />";
		flashStr+="		<param name='salign' value='top' />";
	
	
		flashStr+="		<embed src='"+url+"'";
		flashStr+="		       flashVars='"+vars+"'";
		flashStr+="		       wmode='"+win+"'";
		flashStr+="		       menu='false'";
		flashStr+="		       quality='high'";
		flashStr+="		       bgcolor='"+bg+"'";
		flashStr+="		       width='"+w+"'";
		flashStr+="		       height='"+h+"'";
		flashStr+="		       name='"+id+"'";
		flashStr+="		       align='middle'";
		flashStr+="		       allowScriptAccess='always'";
		flashStr+="		       type='application/x-shockwave-flash'";
		flashStr+="		       pluginspage='http://www.macromedia.com/go/getflashplayer' />";
		flashStr+=" </object>";

	// ÇÃ·¡½Ã ÄÚµå Ãâ·Â
	document.write(flashStr);
}

/* Å¾¸µÅ© ****************************/
function OnTop(){
	document.getElementById('bodyWrap').scrollTop = 0;	// IE6
	window.scrollTo(0,0);	// else
}


/**
 * ½ºÅ©·Ñ µû¶ó ´Ù´Ï´Â ·¹ÀÌ¾î
 * (SkinRx´Â ÀÏ¹ÝÀûÀÎ ·¹ÀÌ¾Æ¿ôÀ» °¡ÁöÁö ¾Ê±â ¶§¹®¿¡ °ø¿ëÀ¸·Î »ç¿ëÇÒ ¼ö ¾øÀ½)
 *
 * new YSlider('ObjectId'[, marginTop=0[, marginBottom=0[, paddingY=0[, per=10[, time=10]]]]]);
 * - ObjectId : ´ë»ó ·¹ÀÌ¾î
 * - marginTop : ÃÖ»ó´Ü ¿©¹é
 * - marginBottom : ÃÖÇÏ´Ü ¿©¹é
 * - paddingY : ½ºÅ©·Ñ ½Ã À§Ä¡(0ÀÌ»ó : »ó´Ü±âÁØ, 0¹Ì¸¸ : ÇÏ´Ü±âÁØ)
 * - per : ÀÌµ¿ ¼Óµµ(ÀÛÀ»¼ö·Ï ºü¸§)
 * - time : ÀÌµ¿ °è»ê ½Ã°£(ÀÛÀ»¼ö·Ï ºü¸§)
 */
function YSlider(obj,marginTop,marginBottom,paddingY,per,time) {
	var timeOut	= null;

	var obj		= document.getElementById(obj);
	var per		= (per) ? per : 10;
	var time	= (time) ? time : 10;

	var marginTop		= (marginTop) ? marginTop : 0;
	var marginBottom	= (marginBottom) ? marginBottom : 0;
	var paddingY		= (paddingY) ? paddingY : 0;
	var objHeight		= (obj.scrollHeight) ? obj.scrollHeight : obj.offsetHeight;

	this.Run = function() {
		var This		= this;
		var pageHeight	= this.getPageHeight();
		var scrollTop	= Math.max(document.documentElement.scrollTop, document.getElementById('bodyWrap').scrollTop, document.body.scrollTop);
		var positionY	= (paddingY < 0) ? scrollTop + this.getWindowHeight() + paddingY : scrollTop + paddingY;

		var objTop	= (obj.style.top) ? parseInt(obj.style.top) : obj.offsetTop;
		var docTop	= (positionY > marginTop) ? positionY : marginTop;

		if(docTop > pageHeight - objHeight - marginBottom) {
			docTop = pageHeight - objHeight - marginBottom;
		}

		if(docTop < marginTop) docTop = marginTop;

		var move	= Math.ceil(Math.abs(objTop - docTop) / per);

		obj.style.top = (docTop > objTop) ? objTop + move + 'px' : objTop - move + 'px';

		window.clearTimeout(timeOut);
		timeOut = window.setTimeout(function() { This.Run(); }, time);
	};

	this.Run();
}

YSlider.prototype.getPageHeight = function()
{
	var scrollHeight	= this.getScrollHeight();
	var windowHeight	= this.getWindowHeight();

	return (windowHeight > scrollHeight) ? windowHeight : scrollHeight;
}

YSlider.prototype.getScrollHeight = function()
{
	if(window.innerHeight && window.scrollMaxY) {
		var scrollHeight = window.innerHeight + window.scrollMaxY;
	} else if(document.getElementById('bodyWrap').scrollHeight > document.getElementById('bodyWrap').offsetHeight) {
		var scrollHeight = document.getElementById('bodyWrap').scrollHeight;
	} else {
		var scrollHeight = document.getElementById('bodyWrap').offsetHeight;
	}

	return scrollHeight;
}

YSlider.prototype.getWindowHeight = function()
{
	if(document.getElementById('bodyWrap') && document.getElementById('bodyWrap').clientHeight) {
		var windowHeight = document.getElementById('bodyWrap').clientHeight;
	}

	return windowHeight;
}


function reSizeFlash(a){
//	alert(a);
	document.topMenu.height = a;
	document.getElementById("headHeight").style.height = a + "px";
	document.getElementById("slidingMenu").initTop = a;
}

function searReSize(b){
//	alert(b);
	document.topMenu.height = b;
}

function cartReSize(c){
//	alert(c);
	document.cart.height = c;
}


// ¸¶¿ì½º ¿À¹ö½Ã »óÇ° ¾ÆÀÌÄÜ
/**
* 
* @param	chr_case
* @param	product_code
*/
function product_icon_write(chr_case, product_code, product_name) 
{
	var AffiliateGBCookie=getCookie("AffiliateGBCookie");
	
	if(AffiliateGBCookie != "true" )
	{
		// »óÇ°ÀÌ ÀÖ´Â °æ¿ìÀÇ ¾ÆÀÌÄÜ ################
		var iconCommentTag = "";
		iconCommentTag +="<div id='" + product_code + "' style='display:none'>";
		iconCommentTag +="<img src='http://img.wizwid.com/Skinrx/skinrx2/rxcart/images/ImgCon_btn_none.gif' name='rxcarticon_"+product_code+"' border='0' useMap='#button_"+product_code+"'>";
		iconCommentTag +="<map name='button_"+product_code+"' id='button_"+product_code+"'>";
		iconCommentTag +="<area onmouseover=\"if(document.images) rxcarticon_"+product_code+".src='http://img.wizwid.com/Skinrx/skinrx2/rxcart/images/ImgCon_btn_QuickView.gif'\" onmouseout=\"if(document.images) rxcarticon_"+product_code+".src='http://img.wizwid.com/Skinrx/skinrx2/rxcart/images/ImgCon_btn_none.gif'\" shape=\"rect\" coords=\"0,0,24,25\" href=\"#\" onclick=\"openQuickView('"+product_code+"'); return false;\" />";
		iconCommentTag +="<area onmouseover=\"if(document.images) rxcarticon_"+product_code+".src='http://img.wizwid.com/Skinrx/skinrx2/rxcart/images/ImgCon_btn_WishList.gif'\" onmouseout=\"if(document.images) rxcarticon_"+product_code+".src='http://img.wizwid.com/Skinrx/skinrx2/rxcart/images/ImgCon_btn_none.gif'\" shape=\"rect\" coords=\"23,0,47,25\" href=\"#\" onclick=\"return false;\" />";
		iconCommentTag +="<area onmouseover=\"if(document.images) rxcarticon_"+product_code+".src='http://img.wizwid.com/Skinrx/skinrx2/rxcart/images/ImgCon_btn_ShoppingCart.gif'\" onmouseout=\"if(document.images) rxcarticon_"+product_code+".src='http://img.wizwid.com/Skinrx/skinrx2/rxcart/images/ImgCon_btn_none.gif'\" shape=\"rect\" coords=\"46,0,70,24\" href=\"#\" onclick=\"showOptionBoard(event, '"+product_code+"', '"+product_name+"'); return false;\" />";
		iconCommentTag +="<area onmouseover=\"if(document.images) rxcarticon_"+product_code+".src='http://img.wizwid.com/Skinrx/skinrx2/rxcart/images/ImgCon_btn_BuyNow.gif'\" onmouseout=\"if(document.images) rxcarticon_"+product_code+".src='http://img.wizwid.com/Skinrx/skinrx2/rxcart/images/ImgCon_btn_none.gif'\" shape=\"rect\" coords=\"69,0,94,25\" href=\"#\" onclick=\"showOptionBoard(event, '"+product_code+"', '"+product_name+"'); return false;\" />";
		iconCommentTag +="</map>";
		iconCommentTag +="</div>";

		document.write(iconCommentTag);
	}
}

function openQuickView(assortId) {
	try	{ parent.openQuickView(assortId); } catch (e) { }
}

function showOptionBoard(e, assortId, productName) {
	try	{
		var posX = parent.Event.pointerX(e) - document.documentElement.scrollLeft;
		var posY = parent.Event.pointerY(e) - document.documentElement.scrollTop;

		parent.showOptionBoard(assortId, productName, {'x':posX, 'y':posY});
	} catch (e) { }
}

/**
* 
* @param	chr_case
* @param	product_code
*/
function product_icon(chr_case, product_code) 
{
	var AffiliateGBCookie=getCookie("AffiliateGBCookie");
	if(AffiliateGBCookie != "true" )
	{
		obj_product_code = document.getElementById(product_code);
		if(chr_case=="01") {
			obj_product_code.style.display = 'block';
		} else if(chr_case == "04") {
			obj_product_code.style.display = 'none';
		}
	}
}


function getCookie(cookieName)
{
	var search=cookieName + "=";
	if(document.cookie.length > 0) // ÄíÅ°°¡ ¼³Á¤µÇ¾î ÀÖ´Ù¸é
	{
		offset = document.cookie.indexOf(search);
		if(offset != -1) // ÄíÅ°°¡ Á¸ÀçÇÏ¸é
		{
			offset += search.length;
			// set index of beginning of value
			end=document.cookie.indexOf(";", offset);
			// ÄíÅ° °ªÀÇ ¸¶Áö¸· À§Ä¡ ÀÎµ¦½º ¹øÈ£ ¼³Á¤
			if(end == -1)
			{
				end=document.cookie.length;
			}
				
			return unescape(document.cookie.substring(offset, end));
		}
	}
	return "";
}

function setCookie(name, value)
{
	var argv = setCookie.arguments;
	var argc = setCookie.arguments.length;
	var expires = (2 < argc) ? argv[2] : null;
	var path = (3 < argc) ? argv[3] : null;
	var domain = (4 < argc) ? argv[4] : null;
	var secure = (5 < argc) ? argv[5] : false;
	document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); 
}


function flashObject(id, movie, flashVars, width, height, wmode) {
	var wmode	= wmode ? wmode : 'transparent';

	var isIE	= (navigator.appName.indexOf("Microsoft") != -1);
	var id1		= (isIE) ? 'id="'+id+'"' : '';
	var id2		= (isIE) ? '' : 'id="'+id+'"';
/*
	var s = '<object '+id1+' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+width+'" height="'+height+'">'
		+ '<param name="movie" value="'+movie+'" />'
		+ '<param name="quality" value="high" />'
		+ '<param name="wmode" value="'+wmode+'" />'
		+ '<param name="swfversion" value="10.0.0.0" />'
		+ '<param name="flashVars" value="'+flashVars+'" />'
		+ '<param name="base" value="." />'
		+ '<param name="allowScriptAccess" value="always" />'
		+ '<param name="expressinstall" value="http://img.wizwid.com/Skinrx/skinrx2/rxcart/js/expressInstall.swf" />';

	if(!isIE) {
		s += '<!--[if !IE]> <-->'
		+ '<object '+id2+' type="application/x-shockwave-flash" data="'+movie+'" width="'+width+'" height="'+height+'">'
		+ '	<param name="quality" value="high" />'
		+ '	<param name="wmode" value="'+wmode+'" />'
		+ '	<param name="swfversion" value="10.0.0.0" />'
		+ '	<param name="flashVars" value="'+flashVars+'" />'
		+ '	<param name="base" value="." />'
		+ '	<param name="allowScriptAccess" value="always" />'
		+ '	<param name="expressinstall" value="http://img.wizwid.com/Skinrx/skinrx2/rxcart/js/expressInstall.swf" />'
		+ '	<div>'
		+ '	<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>'
		+ '	<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>'
		+ '	</div>'
		+ '</object>'
		+ '<!--> <![endif]-->';
	}

	s += '</object>';
//*/
//*
	var s= '<object '+id1+' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="'+width+'" height="'+height+'">'
		+ '<param name="movie" value="'+movie+'" />'
		+ '<param name="quality" value="high" />'
		+ '<param name="wmode" value="'+wmode+'" />'
		+ '<param name="swfversion" value="10.0.0.0" />'
		+ '<param name="flashVars" value="'+flashVars+'" />'
		+ '<param name="base" value="." />'
		+ '<param name="allowScriptAccess" value="always" />'
		+ '<param name="expressinstall" value="http://img.wizwid.com/Skinrx/skinrx2/rxcart/js/expressInstall.swf" />'
		+ '<embed src="'+movie+'" quality="high" width="'+width+'" height="'+height+'" '+id2+' name="'+id+'" flashVars="'+flashVars+'" wmode="'+wmode+'" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>'
		+ '</object>';
/*
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="640" height="480" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="add_call_back.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
<embed id="add_call_back"  src="add_call_back.swf" quality="high" bgcolor="#ffffff" width="640" height="480" name="add_call_back" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
*/
//*/
	document.write(s);

	eval("window." + id + " = document.getElementById('" + id + "');");
}