// JavaScript Document
function LoadFlash(url,wmode,width,Height)
{ 
document.write(
'<embed src="' + url + '" wmode=' + wmode +
' quality="high" pluginspage=http://www.macromedia.com/go/getflashplayer type="application/x-shockwave-flash" width="' + width + 
'" height="' + Height + '"></embed>'); 
}



// <![CDATA[
function bookmark(){////////////////加入收藏夹
var title="伊莲娇雪特许事业总部";
var url="http://www.elishareuk.com/";
if (window.sidebar) window.sidebar.addPanel(title, url,"");
else if( window.opera && window.print ){
var mbm = document.createElement('a');
mbm.setAttribute('rel','sidebar');
mbm.setAttribute('href',url);
mbm.setAttribute('title',title);
mbm.click();}
else if( document.all ) window.external.AddFavorite( url, title);
}
// ]]>


function set_img(objimg,imgwidth,imgheight)//////解决图片高宽度限制问题,调用例子:set_img(this,226,26)
{
    //alert(adNum);
    var tempw=0,temph=0;
    //objimg.src=objimg.src;
    tempw=objimg.width;
    temph=objimg.height;
    if(tempw>imgwidth)
    {
        temph=(temph*(imgwidth/tempw)).toFixed(0);
        tempw=imgwidth;
		if (temph>imgheight){
			temph=imgheight; 
		}
    }
    if(temph>imgheight)
    {
        tempw=(tempw*(imgheight/temph)).toFixed(0);
        temph=imgheight;
		if (tempw>imgwidth){
			tempw=imgwidth; 
		}
    }
    objimg.width=tempw;
    objimg.height=temph;
    
}

 


 


 


 


 


 


 


 


 



 



 




 





 





 





