function resizeToBig()
{
	
	//var IE7 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1)) ? 1 : 0;
	var IE6 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)) ? 1 : 0;
		
	document.getElementById("our_statistic").style.display="none";
	document.getElementById("flash_top").style.width="526px"; // flash menu
	document.getElementById("flash_div_bottom").style.width="514px";
	
	document.getElementById("flashtv").style.width="526px";
	
	document.getElementById("flash_bottom").style.display="none"; //flash szöveg
	//document.getElementById("flashtv_cont").style.width="524px"; //középső doboz
	//document.getElementById("flashtv_cont").style.height="450px";
		
	document.getElementById("flash_content").style.width="524px"; //flash mindent taartó doboz
	document.getElementById("flash_content").style.height="392px";
	
	document.getElementById("flash_divider").style.height="400px"; //flast tartó
	document.getElementById("flash_divider").style.width="524px";
	document.getElementById("flash_divider").style.position="relative";
	
	if (IE6){
		document.getElementById("flash_divider").style.left="0px";
	}
	else{
		document.getElementById("flash_divider").style.left="-102px";
	}
	
	/* For IE */
	object = document.getElementsByTagName('object');
	if (object[0] != undefined)
	{
		for (i = 0; i < object.length; i++)
		{
			if (object[i].width == '320')
			{
				divid = object[i];
				divid.width=520;
				divid.height=390;
				break;
			}
		}
	}

	/* For other browsers */
	embed = document.getElementsByTagName('embed');
	if (embed[0] != undefined)
	{
		for (i = 0; i < embed.length; i++)
		{
			if (embed[i].getAttribute('src').match(/player.php/i))
			{
				divid = embed[i];
				divid.setAttribute('width', '520');
				divid.setAttribute('height', '390');
				break;
			}			
		}
	}

	//document.getElementById("content").height="100%";
}

function resizeToSmall()
{
	//document.getElementById("our_statistic").style.display="block";
	//document.getElementById("flash_top").width="322";
	//document.getElementById("flash_bottom").width="322";
	
	document.getElementById("our_statistic").style.display="block";
	document.getElementById("flash_top").style.width="100%"; // flash menu
	document.getElementById("flash_div_bottom").style.width="370px";
	
	document.getElementById("flashtv").style.width="382px";
	
	document.getElementById("flash_bottom").style.display="block"; //flash szöveg
	//document.getElementById("flashtv_cont").style.width="524px"; //középső doboz
	//document.getElementById("flashtv_cont").style.height="450px";
		
	document.getElementById("flash_content").style.width="380px"; //flash mindent taartó doboz
	document.getElementById("flash_content").style.height="";
	
	document.getElementById("flash_divider").style.height="240px"; //flast tartó
	document.getElementById("flash_divider").style.width="320px";
	document.getElementById("flash_divider").style.position="relative";
	document.getElementById("flash_divider").style.left="0px";

	/* For IE */
	object = document.getElementsByTagName('object');
	if (object[0] != undefined)
	{
		for (i = 0; i < object.length; i++)
		{
			if (object[i].width == '520')
			{
				divid = object[i];
				divid.width=320;
				divid.height=240;
				break;
			}
		}
	}

	/* For other browsers */
	embed = document.getElementsByTagName('embed');
	if (embed[0] != undefined)
	{
		for (i = 0; i < embed.length; i++)
		{
			if (embed[i].getAttribute('src').match(/player.php/i))
			{
				divid = embed[i];
				divid.setAttribute('width', '320');
				divid.setAttribute('height', '240');
				break;
			}			
		}
	}

	//document.getElementById("content").height="340";
}

function refresh_flash_chat(category)
{
	if(category == 'girl')
	{
		document.getElementById('flash_chat_td').innerHTML = '\
			<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0" width="320" height="240">\
				<param name="movie" value="http://static.awempire.com/flash/live_feeds/live_feed.swf" />\
				<param name="quality" value="high" />\
				<param name="wmode" value="transparent" />\
				<param name="flashvars" value="appletroot=http://static.awempire.com/flash/live_feeds/&appletskin=template2/webmasterad_002.swf&appletcol=900000&psid=19750420&pstour=t2&psprogram=PPS&site=jsm&category=Girl&flags=Girl|18_22,Girl|Blonde,Girl|White,Girl|Small_Tits,Girl|Big_Tits,Girl|Latina,Girl|Asian,Girl|Ebony,Girl|Other&quality=best" />\
				<embed src="http://static.awempire.com/flash/live_feeds/live_feed.swf" width="320" height="240" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" flashvars="appletroot=http://static.awempire.com/flash/live_feeds/&appletskin=template2/webmasterad_002.swf&appletcol=900000&psid=19750420&pstour=t2&psprogram=PPS&site=jsm&category=Girl&flags=Girl|18_22,Girl|Blonde,Girl|White,Girl|Small_Tits,Girl|Big_Tits,Girl|Latina,Girl|Asian,Girl|Ebony,Girl|Other&quality=best" id="flash_chat"></embed>\
			</object>';
	}
	if(category == 'boy')
	{
		document.getElementById('flash_chat_td').innerHTML = '\
			<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0" width="320" height="240">\
				<param name="movie" value="http://static.awempire.com/flash/live_feeds/live_feed.swf" />\
				<param name="quality" value="high" />\
				<param name="wmode" value="transparent" />\
				<param name="flashvars" value="appletroot=http://static.awempire.com/flash/live_feeds/&appletskin=template2/webmasterad_002.swf&appletcol=900000&psid=19750420&campaign_id=3865&pstour=t2&psprogram=PPS&site=cmb&category=Boy&quality=best" />\
				<embed src="http://static.awempire.com/flash/live_feeds/live_feed.swf" width="320" height="240" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" flashvars="appletroot=http://static.awempire.com/flash/live_feeds/&appletskin=template2/webmasterad_002.swf&appletcol=900000&psid=19750420&campaign_id=3865&pstour=t2&psprogram=PPS&site=cmb&category=Boy&quality=best"></embed>\
			</object>';	
	}
	if(category == 'shemale')
	{
		document.getElementById('flash_chat_td').innerHTML = '\
		   <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0" width="320" height="240">\
		       <param name="movie" value="http://static.awempire.com/flash/live_feeds/live_feed.swf" />\
		       <param name="quality" value="high" />\
		       <param name="wmode" value="transparent" />\
		       <param name="flashvars" value="appletroot=http://static.awempire.com/flash/live_feeds/&appletskin=template2/webmasterad_002.swf&appletcol=900000&psid=19750420&campaign_id=3865&pstour=t1&psprogram=PPS&site=jsm&flags=1048576,64,2097152&lp_lang=en" />\
		       <embed src="http://static.awempire.com/flash/live_feeds/live_feed.swf" width="320" height="240" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" flashvars="appletroot=http://static.awempire.com/flash/live_feeds/&appletskin=template2/webmasterad_002.swf&appletcol=900000&psid=19750420&campaign_id=3865&pstour=t1&psprogram=PPS&site=jsm&flags=1048576,64,2097152&lp_lang=en"></embed>\
		   </object>';
	}
	if(category == 'asian')
	{
		document.getElementById('flash_chat_td').innerHTML = '\
		   <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0" width="320" height="240">\
		       <param name="movie" value="http://static.awempire.com/flash/live_feeds/live_feed.swf" />\
		       <param name="quality" value="high" />\
		       <param name="wmode" value="transparent" />\
		       <param name="flashvars" value="appletroot=http://static.awempire.com/flash/live_feeds/&appletskin=template2/webmasterad_002.swf&appletcol=900000&psid=19750420&campaign_id=3865&pstour=t1&psprogram=PPS&site=jsm&flags=8193,10241,532481,12289&lp_lang=en" />\
		       <embed src="http://static.awempire.com/flash/live_feeds/live_feed.swf" width="320" height="240" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" flashvars="appletroot=http://static.awempire.com/flash/live_feeds/&appletskin=template2/webmasterad_002.swf&appletcol=900000&psid=19750420&campaign_id=3865&pstour=t1&psprogram=PPS&site=jsm&flags=8193,10241,532481,12289&lp_lang=en"></embed>\
		   </object>';
	}
}
