﻿jQuery.noConflict();
jQuery(document).ready(function($){



/*crossSlide*/
$('#lead_inner').innerfade({
	speed: 'slow',
	timeout: 7000,
	type: 'sequence',
	containerheight: '220px'
}); 


/*auto scroll*/
$(function () {
        $('a.smsc').click(function () {
            //var tgt = $(this).attr('href');
			//alert(tgt);
			$(this).blur();
			var targetOffset = $($(this).attr('href')).offset().top;
			$('html,body').animate({scrollTop: targetOffset}, 300);
            return false;
        });
    
});


/*h1 title*/
theT = $('body').attr('id');
$('h1').css('background-image','url(/common/img/h1_'+theT+'.gif)');

});

function runflash(theFla,theName,fla_w,fla_h,tgt) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+fla_w+'" height="'+fla_h+'" id="'+theName+'" align="middle">');
	document.write('<param name = "allowScriptAccess" value = "always" />');
	document.write('<param name = "allowfullscreen" value = "true" />');
	document.write('<param name="movie" value="'+theFla+'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="FlashVars" value="'+tgt+'" />');
	document.write('<embed src="'+theFla+'" quality="high" bgcolor="#ffffff" wmode="transparent" FlashVars="'+tgt+'" width="'+fla_w+'" height="'+fla_h+'" name="'+theName+'" align="middle" allowScriptAccess="always" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}



