document.write("<!--[if IE 6]><link rel='stylesheet' type=text/css href=/common/css/ie6.css><![endif]-->");
document.write("<!--[if IE 7]><link rel='stylesheet' type=text/css href=/common/css/ie7.css><![endif]-->");
document.write("<script type='text/javascript' src='/common/js/select.js'></script>");
document.write("<script type='text/javascript' src='/common/js/selectbox.js'></script>");
document.write("<script type='text/javascript' src='/common/js/selectbox02.js'></script>");

function over(obj,type){
	if(type) obj.src = obj.src.replace(".gif","_on.gif");
	else obj.src = obj.src.replace("_on.gif",".gif");
}

function pop(url,name,w,h,t,l){ window.open(url,name,'width='+w+',height='+h+',scrollbars=no,status=1,top=0,left=0') } 

function Flash(id,url,w,h,bg,t){
	document.write("\
	<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9.0.124.0' width="+w+" height="+h+" id="+id+">\
	<param name='movie' value="+url+">\
	<param name='wmode' value="+t+">\
	<param name='bgcolor' value="+bg+">\
	<param name='allowScriptAccess' value='always'>\
	<param name='quality' value='high'>\
	<param name='menu' value='false'>\
	<embed src="+url+" width="+w+" height="+h+" wmode="+t+" name="+id+" bgcolor="+bg+" allowScriptAccess='sameDomain' quality='high' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>\
	</object>\
	");
}

function allMenuView(){
	//if(document.getElementById('allmenu').style.display == 'none') document.getElementById('allmenu').style.display = '';
	//else document.getElementById('allmenu').style.display = 'none';
	var $allmenu = $('#allmenu');
	if($allmenu.css('display') == "none") {
		$allmenu.fadeIn('slow');
		//$allmenu.animate({ height : '400px' },1000);
	} else {
		$('#allmenu').fadeOut('slow');
		//$allmenu.animate({ height : '0px' },1000);
	}
}

function givestar(){
	if(document.getElementById('starlist').style.display == 'none') document.getElementById('starlist').style.display = '';
	else document.getElementById('starlist').style.display = 'none';
}

function radio(num) {
var sel = "answer"+num;
for(i=1;i<=5;i++){
	var out = "answer"+i;
	document.getElementById(out).src ="/img/common/radio_off.gif";
	}
	document.getElementById(sel).src ="/img/common/radio_on.gif";
	document.getElementById('answer').value = num;
}

function radio(num) {
var sel = "answer"+num;
for(i=1;i<=5;i++){
	var out = "answer"+i;
	document.getElementById(out).src ="/img/common/radio_off.gif";
	}
	document.getElementById(sel).src ="/img/common/radio_on.gif";
	document.getElementById('answer').value = num;
}


function radio2(num) {
var sel2 = "searchbyyear"+num;
for(i=1;i<=6;i++){
	var out2 = "searchbyyear"+i;
	document.getElementById(out2).src ="/img/common/radio02_off.gif";
	}
	document.getElementById(sel2).src ="/img/common/radio02_on.gif";
	document.getElementById('searchbyyear').value = num;
}

function setPng24(obj) {
	obj.width = obj.height=1;
	obj.className = obj.className.replace(/\bpng24\b/i,'');
	obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
	obj.src='';
	return '';
}


