document.write("<lin" + "k type=\"text/css\" rel=\"stylesheet\" href=\"/css/common/js.css\" media=\"screen\" />");
function resiseSWFdiv(){
	var winWidth = $(window).width();
	var winHeight  = $(window).height();
	
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
	//Non-IE
		myWidth = window.innerWidth-20;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	var winWidth 	= myWidth;
	var winHeight  	= myHeight;
	
	var min = 980;
	var max = 1645;
	if(winWidth < min) 
		toWidth = min;
	else if(winWidth > min && winWidth < max) 
		toWidth = winWidth;
	else if(winWidth >= max) 
		toWidth = max;
	else {}
	jQuery("#content").css({width: toWidth}); 
}
jQuery(document).ready(function(){
	
	resiseSWFdiv("flashcontent");
	$(window).resize( function() { resiseSWFdiv(); } );	
});
/* POPUP */
function popit(type,page,largeur,hauteur,popupname){
	if(!popupname || popupname ==''){popupname="pop_up"}
	var top=(screen.height-hauteur)/2;
	var left=(screen.width-largeur)/2;
	switch(type){
		case 1 :var fenetre = window.open(page,popupname,"top="+top+",left="+left+",width="+largeur+", height="+hauteur+",resizable=yes,scrollbars=yes");break;
		case 2 :var fenetre = window.open(page,popupname+Math.round((Math.random()*10000000000000)),"top="+top+",left="+left+",width="+largeur+", height="+hauteur+",scrollbars=yes,status=yes,toolbar=yes,resizable=yes,menubar=yes,location=yes");break;
		case 3 :var fenetre = window.open(page,popupname+Math.round((Math.random()*10000000000000)),"top="+top+",left="+left+",width="+largeur+", height="+hauteur+",scrollbars=no,status=no,toolbar=no,resizable=no,menubar=no,location=no");break;
		case 4 :var fenetre = window.open(page,popupname+Math.round((Math.random()*10000000000000)),"top="+top+",left="+left+",width="+largeur+", height="+hauteur+",scrollbars=yes,status=no,toolbar=no,resizable=yes,menubar=no,location=no");break;
		case 0 :
		default :var fenetre = window.open(page,popupname+Math.round((Math.random()*10000000000000)),"top="+top+",left="+left+",width="+largeur+", height="+hauteur+",resizable=yes,scrollbars=yes");
	}
	if ( fenetre ) {
		fenetre.focus();
		return true;
	} else {
		//	bloqu?e !?
		return false;
	}
}
/* /POPUP */