//---- flash view -----//
function ShowFlash(url, width, height){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="' + width + '" height="' + height + '" VIEWASTEXT>');
	document.write('<param name="allowScriptAccess" value="always">');
	document.write('<param name="movie" value="' + url + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="menu" value="false">');
	document.write('<PARAM NAME=wmode VALUE=transparent>');
	document.write('<embed src="' + url + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" allowScriptAccess="always" type="application/x-shockwave-flash" width="' + width + '" height="' + height + '"></embed>');
	document.write('</object>');
}


//-----img rollover------//
function imgExchange(obj){

imgName = obj.src.slice(obj.src.lastIndexOf('/') + 1, obj.src.length);
imgPath = '/images/'; 

if(imgName.indexOf('_on') > 0){
imgName = imgName.replace('_on', '');
}else{
imgName = imgName.replace('.', '_on.');
}

obj.src = imgPath + imgName;

}

//-----img onfocus=blur()------//
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 

function winOpen(url, name, scroll, resize) {
	if(url) window.open(url, name, 'width=100,height=100,scrollbars='+scroll+',resizable='+resize);
}

//left 2depth


function imgResize(img){ 
  img10= new Image(); 
  img10.src=(img); 
  imgControll(img); 
} 
function imgControll(img){ 
  if((img10.width!=0)&&(img10.height!=0)){ 
    viewImage(img); 
  } 
  else{ 
    controller="imgControll('"+img+"')"; 
    intervalID=setTimeout(controller,20); 
  } 
} 
function viewImage(img){ 
 W=img10.width; 
 H=img10.height; 
 O="width="+W+",height="+H; 
 imgWin=window.open("","",O); 
 imgWin.document.write("<html><head><title></title></head>");
 imgWin.document.write("<body topmargin=0 leftmargin=0 rightmargin=0 bottommargin=0 oncontextmenu='return false' ondragstart='return false' onselectstart='return false' scroll='no'>");
 imgWin.document.write("<img src="+img+" style=cursor:hand onclick='self.close()' alt=Ã¢´Ý±â>");
 imgWin.document.close();
} 

