
function SetupC2( )
{

	try
	{
		init( );
		fpimg_init();
	}
	catch( e ){ ; }

	try
	{
		var els = new Array
		( 
			/*findObj( 'rm_womens-catalog' ), 
			findObj( 'rm_mens-catalog' )*/ 
		);
		
		for( var i = 0 ; i < 2 ; i++ )
			if( els[ i ] )
			{
				els[ i ].href = 'javascript:void( 0 )';
				//els[ i ].disabled = true;
				//els[ i ].className = '';
				els[ i ].onmouseover = function( ){	; }
				els[ i ].style.cursor = 'default';
			}
	}
	catch( e )
	{
		//tmnu doesn't work at this point any way...
	}

	try
	{
		scrl_init( layerName );	
	}
	catch( e )
	{

	}
	
}

function init_all( )
{
	SetupC2( ); /* old mod call */
}


function WriteFlash( )
{

	document.write
	(
		''+
		'<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="800" height="460" id="index-swf">' +
		'<PARAM name="allowScriptAccess" value="sameDomain" />' +
		'<PARAM name="movie" value="files/index.swf" />' +
		'<PARAM name="top" value="false" />' +
		'<PARAM name="quality" value="high" />' +
		'<PARAM name="devicefont" value="true" />' +
		'<param name="scale" value="noscale" />' +
		'<param name="wmode" value="opaque" />' +
		'<param name="menu" value="false" />' +
		'<EMBED scale="noscale" wmode="opaque" src="files/index.swf" MENU="false" QUALITY="high" DEVICEFONT="true" width="800" height="460" NAME="index_swf" ALLOWSCRIPTACCESS="sameDomain" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" />' +
		'</OBJECT>'
	);
	
}

function WriteCliqueFlash( ruri )
{
	//mpgclique.swf
	document.write
	(
		'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="262" height="51" id="mpgclique_button2" align="middle">' +
		'<param name="allowScriptAccess" value="sameDomain" />' +
		'<param name="movie" value="files/mpgclique.swf?rurl=' + ruri + '" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="files/mpgclique.swf?rurl=' + ruri + '" quality="high" bgcolor="#ffffff" width="262" height="51" name="mpgclique_button2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />' +
		'</object>'
	);

}


function findObj( theObj, theDoc )
{
	var p, i, foundObj;
	if(!theDoc) theDoc = document;
	if( (p = theObj.indexOf("?")) > 0 && parent.frames.length) {
		theDoc = parent.frames[theObj.substring(p+1)].document;
		theObj = theObj.substring(0,p);
	}
	if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
		for (i=0; !foundObj && i < theDoc.forms.length; i++) 
			foundObj = theDoc.forms[i][theObj];
	for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
		foundObj = findObj(theObj,theDoc.layers[i].document);
	if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj); 
	return foundObj;
}


/*
	documents...
*/
function expandDesc(el/* d-# */)
{
	try
	{
		var tEl = findObj(el+'_T');
		var	untEl = findObj(el+'_full');
		if(!tEl || !untEl)
			return/* ooops, a boo-boo*/;
		if(!tEl.style)
			return/* im so sure.. */;
		tEl.style.display='none';
		untEl.style.display='block';
		
	}catch(e)
	{
		var toks = el.split("-");
		if(toks.length<2)return;
		window.location = '?id='+toks[1];
	}
}
