//head tag: <script src="anim/runjava.js" type="text/javascript"></script>
//banner Tag: <script type="text/javascript">RunBanner();</script>
//nav Tag: <script type="text/javascript">RunNav();</script>
//intro Tag: <script type="text/javascript">RunIntro();</script>


function RunBanner()
{
document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n');
document.write ('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"\n');
document.write ('id="banner" width="970" height="170">\n');
document.write ('<param name="movie" value="anim/banner.swf" />\n');
document.write ('<param name="quality" value="High" />\n');
document.write ('<param name="wmode" value="transparent" />\n');
document.write ('<param name="allowscriptaccess" value="samedomain" />\n');
document.write ('<embed type="application/x-shockwave-flash"\n');
document.write ('pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"\n');
document.write ('name="banner" width="970" height="170" src="anim/banner.swf"\n');
document.write ('quality="High" wmode="transparent" allowscriptaccess="samedomain">\n');
document.write ('<noembed>\n');
document.write ('</noembed>\n');
document.write ('</embed>\n');
document.write ('</object>\n');
}

function RunBanner_parent()
{
document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n');
document.write ('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"\n');
document.write ('id="banner" width="970" height="170">\n');
document.write ('<param name="movie" value="../anim/banner.swf" />\n');
document.write ('<param name="quality" value="High" />\n');
document.write ('<param name="wmode" value="transparent" />\n');
document.write ('<param name="allowscriptaccess" value="samedomain" />\n');
document.write ('<embed type="application/x-shockwave-flash"\n');
document.write ('pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"\n');
document.write ('name="banner" width="970" height="170" src="../anim/banner.swf"\n');
document.write ('quality="High" wmode="transparent" allowscriptaccess="samedomain">\n');
document.write ('<noembed>\n');
document.write ('</noembed>\n');
document.write ('</embed>\n');
document.write ('</object>\n');
}
function RunBanner_parent_parent()
{
document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n');
document.write ('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"\n');
document.write ('id="banner" width="970" height="170">\n');
document.write ('<param name="movie" value="../../anim/banner.swf" />\n');
document.write ('<param name="quality" value="High" />\n');
document.write ('<param name="wmode" value="transparent" />\n');
document.write ('<param name="allowscriptaccess" value="samedomain" />\n');
document.write ('<embed type="application/x-shockwave-flash"\n');
document.write ('pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"\n');
document.write ('name="banner" width="970" height="170" src="../../anim/banner.swf"\n');
document.write ('quality="High" wmode="transparent" allowscriptaccess="samedomain">\n');
document.write ('<noembed>\n');
document.write ('</noembed>\n');
document.write ('</embed>\n');
document.write ('</object>\n');
}
function Run_Image(i,h)
{
document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n');
document.write ('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"\n');
document.write ('id="nav" width="355" height="' + h + '">\n');
document.write ('<param name="movie" value="images/' + i + '.swf" />\n');
document.write ('<param name="quality" value="High" />\n');
document.write ('<param name="wmode" value="transparent" />\n');
document.write ('<param name="allowscriptaccess" value="samedomain" />\n');
document.write ('<embed type="application/x-shockwave-flash"\n');
document.write ('pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"\n');
document.write ('name="nav" width="355"  height="' + h + '" src="images/' + i + '.swf"\n');
document.write ('quality="High" wmode="transparent" allowscriptaccess="samedomain">\n');
document.write ('<noembed>\n');
document.write ('</noembed>\n');
document.write ('</embed>\n');
document.write ('</object>\n');
}
function Run_Image_parent(i,h)
{
document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n');
document.write ('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"\n');
document.write ('id="image" width="355" height="' + h + '">\n');
document.write ('<param name="movie" value="../images/' + i + '.swf" />\n');
document.write ('<param name="quality" value="High" />\n');
document.write ('<param name="wmode" value="transparent" />\n');
document.write ('<param name="allowscriptaccess" value="samedomain" />\n');
document.write ('<embed type="application/x-shockwave-flash"\n');
document.write ('pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"\n');
document.write ('name="image" width="355"  height="' + h + '" src="../images/' + i + '.swf"\n');
document.write ('quality="High" wmode="transparent" allowscriptaccess="samedomain">\n');
document.write ('<noembed>\n');
document.write ('</noembed>\n');
document.write ('</embed>\n');
document.write ('</object>\n');
}


function RunIntro()
{
document.write ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n');
document.write ('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"\n');
document.write ('id="intro" width="150" height="300">\n');
document.write ('<param name="movie" value="anim/intro.swf" />\n');
document.write ('<param name="quality" value="High" />\n');
document.write ('<param name="wmode" value="transparent" />\n');
document.write ('<param name="allowscriptaccess" value="samedomain" />\n');
document.write ('<embed type="application/x-shockwave-flash"\n');
document.write ('pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"\n');
document.write ('name="intro" width="150" height="300" src="anim/intro.swf"\n');
document.write ('quality="High" wmode="transparent" allowscriptaccess="samedomain">\n');
document.write ('<noembed>\n');
document.write ('</noembed>\n');
document.write ('</embed>\n');
document.write ('</object>\n');
}
 function Check_Select()
 {
	sel1 = document.forms[0].attrib1;
	sel2 = document.forms[0].attrib2;
	sel3 = document.forms[0].gift1;
	sel4 = document.forms[0].gift2;
	sel5 = document.forms[0].gift3;
	sel6 = document.forms[0].talent1;
	sel7 = document.forms[0].talent2;

	if (sel1.value == sel2.value){
		sel1.style.backgroundColor="#FFC0C0";
		sel2.style.backgroundColor="#FFC0C0";
		sel1.style.color="red";
		sel2.style.color="red";
	}
	else {
		sel1.style.backgroundColor="#FFFFFF";
		sel2.style.backgroundColor="#FFFFFF";
		sel1.style.color="navy";
		sel2.style.color="navy";
	}
	if ((sel3.value == sel4.value) || (sel3.value == sel5.value)){
		if (sel3.value == sel4.value){
			sel3.style.backgroundColor="#FFC0C0";
			sel4.style.backgroundColor="#FFC0C0";
			sel3.style.color="red";
			sel4.style.color="red";
		}
		else {
			sel3.style.backgroundColor="#FFFFFF";
			sel4.style.backgroundColor="#FFFFFF";
			sel3.style.color="navy";
			sel4.style.color="navy";
		}
		if (sel3.value == sel5.value){
			sel3.style.backgroundColor="#FFC0C0";
			sel5.style.backgroundColor="#FFC0C0";
			sel3.style.color="red";
			sel5.style.color="red";
		}
		else {
			sel3.style.backgroundColor="#FFFFFF";
			sel5.style.backgroundColor="#FFFFFF";
			sel3.style.color="navy";
			sel5.style.color="navy";
		}
	}
	if (sel4.value == sel5.value){
		sel4.style.backgroundColor="#FFC0C0";
		sel5.style.backgroundColor="#FFC0C0";
		sel4.style.color="red";
		sel5.style.color="red";
	}
	else {
		sel4.style.backgroundColor="#FFFFFF";
		sel5.style.backgroundColor="#FFFFFF";
		sel4.style.color="navy";
		sel5.style.color="navy";
	}
	if (sel6.value == sel7.value){
		sel6.style.backgroundColor="#FFC0C0";
		sel7.style.backgroundColor="#FFC0C0";
		sel6.style.color="red";
		sel7.style.color="red";
	}
	else {
		sel6.style.backgroundColor="#FFFFFF";
		sel7.style.backgroundColor="#FFFFFF";
		sel6.style.color="navy";
		sel7.style.color="navy";
	}
 }
function textCount(comField, countfield, maxlimit) {
	if (comField.value.length > maxlimit) {
		comField.value = comField.value.substring(0, maxlimit);
	}
	else countfield.value = maxlimit - comField.value.length;
}
