﻿//latest 2010-03-08 designed by 不惑仔 http://boohover.pixnet.net/blog
(function($){
$(function(){


//general
function addEleClear(cssSele){$(cssSele).after('<div class="clr"></div>');}
function expandNextBlock(eleJQ,delay){eleJQ.next().slideToggle(delay);}

$("address a","#footer").append('<span/>').hover(function(){$(this).css({position:"relative"}).children("span").css({position:"absolute",border:"1px solid green"}).stop().hide().fadeTo(600,0.9);},function(){$(this).children("span").stop().fadeOut(1200);});

//add favicon
//$("head").append('<link rel="shortcut icon" href="http://www.betaschool.com.tw/images/favicon.ico" type="image/x-icon" />');

//addSwfSimple(CSS Selector, uri of a file, width, height, transparent=false, insert at the end=false);
function addSwfSimple(cssSele, uriStr, wd, ht, transp, endIns){
	var htmlStr='<object data="'+uriStr+'" type="application/x-shockwave-flash" width="'+wd+'" height="'+ht+'">'+
	            '<param name="movie" value="'+uriStr+'"/>'+
													'<param name="quality" value="high"/>';
	if(transp){htmlStr+='<param name="wmode" value="transparent"/>';}
	htmlStr+='</object>';
 if(endIns){$(cssSele).append(htmlStr);}
	else{$(cssSele).prepend(htmlStr);}
}

if($.browser.msie){
	if(parseInt($.browser.version,10)<8){
  $('*[lang|="en"]').addClass("langEn");
		if(parseInt($.browser.version,10)<7){
			
   $('input[type="button"],input[type="submit"],input[type="reset"]').css({fontSize:"80%"});
			$('input[type="text"],textarea').css({borderWidth:"1px"});
		 $("#guideAcce li:first-child").hide();
		}//lt ie7
	
	}//lt ie8
}//ie


});
})(jQuery);