var oref = '';
var cookie_name = "origin";
if(document.cookie) {
var index = document.cookie.indexOf(cookie_name);
if (index != -1) {
var countbegin = (document.cookie.indexOf("=", index) + 1);
var countend = document.cookie.indexOf(";", index);
if (countend == -1) {countend = document.cookie.length}
oref = document.cookie.substring(countbegin, countend);
}
}
if(oref == ''){
oref = document.referrer;
}
oref = oref.replace("http://", "");
oref = oref.replace(".cgi", ".cgu");
oref = oref.replace(/\&/g, "-and-");
document.cookie = "origin="+oref;

var thescale="showall";
var color="white";
var align="TC";
var salign="TC";
var quality="best";
var addtag="?oref="+oref;

function loader(moviename,wide,high){

document.write('<OBJECT name=flash CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH='+wide+' HEIGHT='+high+' codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0">');
document.write('<PARAM NAME="MOVIE" VALUE="'+moviename+'.swf'+addtag+'">');
document.write('<PARAM NAME="PLAY" VALUE="true">');
document.write('<PARAM NAME="scale" VALUE='+thescale+'>');
document.write('<PARAM NAME="salign" VALUE="'+salign+'">');
document.write('<PARAM NAME="align" VALUE="'+align+'">');
document.write('<PARAM NAME="bgcolor" VALUE='+color+'>');
document.write('<PARAM NAME="menu" VALUE="false">');
document.write('<PARAM NAME="QUALITY" VALUE='+quality+'>');

document.write('<EMBED SRC='+moviename+'.swf'+addtag+' name=flash WIDTH='+wide+' HEIGHT='+high+' quality='+quality+' scale='+thescale+' salign='+salign+' align='+align+' bgcolor='+color+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.adobe.com/go/getflashplayer"><\/EMBED>');

document.write('<\/OBJECT>');

}

