////////////////////////////// body //////////////


function BodymiddleStyle_div_middle_news()
{


$('#BodymiddleStyle_div_middle_news_3').cycle({
	    fx:     'scrollUp',
        speed:    500,
		timeout:  5000,
		pause:		   1	  // true to enable "pause on hover"
    });


 $('div.active_dept_name_has_sub').mouseout( function() { 
$(this).find('div.dept_name_has_sub').hide();
 } );
//	height:		  '300px',
 $('div.active_dept_name_has_sub').mouseover( function() { 
$(this).find('div.dept_name_has_sub').show(); 
 } );
 
/* 	

$('#BodymiddleStyle_div_middle_news_1').cycle({
	    fx:     'scrollUp',
        speed:    1000,
		timeout:  10000,
		pause:		   1	  // true to enable "pause on hover"
    });

$('#BodymiddleStyle_div_middle_news_2').cycle({
	    fx:     'scrollUp',
        speed:    1000,
		timeout:  10000,
		pause:		   1	  // true to enable "pause on hover"
    });


//$('#BodymiddleStyle_div_middle_news_1').cycle('stop');
 	   




 $('#home_icon_middle area').click( function() {
//alert($(this).attr("showdiv"))											 
//$(this).show();//.attr("src","images/icon_middle_show.gif");
//$("img#icon_middle_new").hide();//.attr("src","images/icon_middle_new_unactive.gif");
//if($(this).attr("showdiv")== 'BodymiddleStyle_div_middle_news_1')
$('#BodymiddleStyle_div_middle_news_2').cycle('stop');
//else
$('#BodymiddleStyle_div_middle_news_1').cycle('stop');
$('#'+$(this).attr("showdiv")).cycle({
	    fx:     'scrollUp',
        speed:    1000,
		timeout:  10000,
		pause:		   1	  // true to enable "pause on hover"
    });
$('.BodymiddleStyle_div_middle_news[showdiv=yes]').hide();
$('.icon_middle_111').hide();
$('#'+$(this).attr("showdiv")).show();
$('#'+$(this).attr("showimg")).show();

												   } );
$('area').css({
cursor : 'pointer'
});
 $('#home_icon_middle area').eq(0).click();
 
 */
//alert($('#home_icon_middle area').length)
}//function BodymiddleStyle_div_middle_news()


$(document).ready(function() {

	BodymiddleStyle_div_middle_news();
	
 //$('#BodymiddleStyle_div_middle_news_1 .ShowImgInIndex_Homdiv').css({ float: "right"});
	
});//$(document).ready(function() {
	



 
function dilogShow1(PATH)
{
	 // alert(PATH);
var urlP =PATH
window.open(urlP,'','toolbar=no,location=no,directories=no,status=no,menubar=no,width=900,height=700,scrollbars=0','');
} 

 
 function dilogShow(PATH)
{
	// alert(PATH);
var urlP =PATH
window.open(urlP,'','toolbar=no,location=no,directories=no,status=no,menubar=no,width=400,height=250,scrollbars=0','');

} 



 function dilogShow_download(PATH)
{
	 // alert(PATH);
var urlP =PATH
window.open(urlP,'','toolbar=no,location=no,directories=no,status=no,menubar=no,width=200,height=200,scrollbars=1','');

} 


function addBookmark(){
if(window.sidebar){
window.sidebar.addPanel(title, url, "");
} else if(document.all){
//alert('title='+title+'\n url='+url)
window.external.AddFavorite(url,title)
	
//window.external.AddFavorite(url, title);
} else if(window.opera && window.print){
alert('Press ctrl+D to bookmark (Command+D for macs) after you click Ok');
} else if(window.chrome){
alert('Press ctrl+D to bookmark (Command+D for macs) after you click Ok');
}
}



function setasHome(){
if (document.all)
 { 
   document.body.style.behavior='url(#default#homepage)';
   document.body.setHomePage(url);
 }
 else if (window.sidebar) 
 { 
    if(window.netscape)
    {
     try
     { 
       netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect"); 
     }
     catch(e) 
     {
    alert("this action was aviod by your browser,if you want to enable,please enter about:config in your            address line,and change the value of signed.applets.codebase_principal_support to true");

     }
    }
 var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch); prefs.setCharPref('browser.startup.homepage',url);
  }
}//setasHome()


 

