var domain="";
var tempwidth = 980;
var tempheight = 570;
//tempheight = tempheight - 120; //to allow for browser tool bars
//tempwidth = tempwidth - 50;
var aspratio = tempwidth/tempheight;
//our aspratio is 1.72
// we need to set the correct size for the flash file so that it does not skew
if (aspratio > 1.72) {
tempwidth = 1.72*tempheight;
}
else if (aspratio < 1.72) {
tempheight = tempwidth/1.72;
}
introwidth = tempwidth;
introheight = tempheight;
var randomnum = Math.round(10000*Math.random());
var introvar='http://svr01.trendyflash.com/builder_intro/resources/preloader_gallery/standard/intro26.swf';
var introinitialvar='http://svr01.trendyflash.com/builder_intro/resources/preloader_gallery/standard/introinitial26.swf';
var contentpathvar='http://svr01.trendyflash.com/builder/users/intro_test/intro/1003479/preview/';
embedstring = '<EMBED src='+introvar+'?introinitialvar=' + introinitialvar + '&contentpathvar='+contentpathvar+ '&urlvar=' + domain + '&randomnum=' + randomnum + ' quality=high scale=exactfit  bgcolor=#000000 WIDTH=' + introwidth + ' HEIGHT='+introheight +' NAME=trendyflash ALIGN= TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer allowScriptAccess=always></EMBED>'
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=http://active.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0 id=trendyflash width=' + introwidth+ ' height=' + introheight + '> \n');
document.write('<PARAM NAME=movie VALUE='+introvar+'?introinitialvar=' + introinitialvar + '&contentpathvar='+contentpathvar+ '&urlvar=' + domain + '&randomnum=' + randomnum + ' > \n');
document.write('<param name=SCALE value=exactfit>\n');
document.write('<PARAM name=quality value=high> \n');
document.write('<PARAM name=menu value=false> \n');
document.write('<param name="allowScriptAccess" value="always"/>\n');
document.write(embedstring + '\n');
document.write('</OBJECT> \n');
document.write('</DIV> \n');
