﻿function getflash(swfname)
{
    
    var gethtml ;
    gethtml ='<script type="text/javascript">startIeFix();</script>';
    gethtml += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="370" height="300" id="video_load" align="middle" viewastext>';
    gethtml += '<param name="allowScriptAccess" value="sameDomain" /><param name="allowFullScreen" value="false" />';
    gethtml += '<param name="bgcolor" value="#ffffff" />';
    gethtml += '<param name="movie" value="Flash_player.swf?videopath='+ swfname +'" />';
    gethtml += '<param name="quality" value="high" />';
    gethtml += '<param name="wmode" value="opaque" />';
    gethtml += '<embed src="Flash_player.swf?videopath='+swfname+'"';
    gethtml += ' quality="high" bgcolor="#ffffff" width="370" height="300" name="video_load" align="middle"';
    gethtml += ' allowscriptaccess="sameDomain" allowfullscreen="false" type="application/x-shockwave-flash"';
    gethtml += ' pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="opaque" /></object>';
    gethtml +='<script type="text/javascript">endIeFix();</script>';
    //alert(gethtml);
    document.getElementById('playerdiv').innerHTML = gethtml;
}

function getimage(url,w,h,alt)
{
    var he=h+20;
    document.getElementById('divimg').style.width=w+'px';
    document.getElementById('divimg').style.height=he+'px';
    var str='<img src="'+url+'" width="'+w+'px" height="'+h+'px" alt="'+alt+'" style="border:0"/>';
    document.getElementById('divimg1').innerHTML = str;
}
function getcontent(txt,w,h)
{
    var he=h+20;
    var le;    
    document.getElementById('divimg').style.margin='0px auto';
    document.getElementById('divimg').style.top='30px';
    document.getElementById('divimg').style.width=w+'px';
    document.getElementById('divimg').style.height=he+'px';
    str="<span class='left clear' style='width: 339px; height: 277px; background-image: url(images/news/neopress_01.gif);background-repeat: no-repeat'></span><span class='left clear' style='width: 339px; height: 231px; background-image: url(images/news/neopress_02.gif)'></span><span class='left clear' style='width: 339px; height: 224px; background-image: url(images/news/neopress_03.gif)'></span><span class='left clear' style='width: 339px; height: 101px; background-image: url(images/news/neopress_04.gif)'></span>";
    
    document.getElementById('divimg1').innerHTML = str;
    le=(document.getElementById('blanket').style.width.substring(0,4)/2)-(w/2);   
    document.getElementById('divimg').style.left=le+'px';
}

function getcont(w,h,uno,url1,url2,url3,url4)
{
    var he=h+20;
    var le,i,t;    
    document.getElementById('divimg').style.margin='0px auto';
    document.getElementById('divimg').style.top='30px';
    document.getElementById('divimg').style.width=w+'px';
    document.getElementById('divimg').style.height=he+'px';
    str="";
    for(i=1;i<=uno;i++)
    {
        var url;
        if(i==1)
        {url =url1;}
        else if(i==2)
        {url=url2;}
        else if(i==3)
        {url=url3;}
        else if(i==4)
        {url=url4}
        str+="<img src='"+url+"' alt=''><br/>";
    }   
    
    document.getElementById('divimg1').innerHTML = str;
    le=(document.getElementById('blanket').style.width.substring(0,4)/2)-(w/2); 
    document.getElementById('divimg').style.left=le+'px';
    window.scrollTo(0,30);  
    }
