
// Expand after click Start
var flash_banner ="http://banners.adnet.lt/bridzita_750x100.swf";
var flash_exp ="http://banners.adnet.lt/bridzita_750x400.swf";
var bck_gif_file ="";
var bck_expgif_file ="";     //Optional: leave blank "" if not used
var clickthrough_url ="http://www.forumcinemas.lt/main_dis.php"

var ban_width = 750;
var ban_height = 100;
var exp_width = 750;
var exp_height = 400;
var expand_on = "TOP"   // OPTIONS: "TOP" "BOTTOM" "LEFT" "RIGHT"

var flashver = 6        // 5, 6, 7 (for Director 7)

var postop=0;
var posleft=0;

switch (expand_on){
   case "TOP":
      postop = 0;
      posleft = 0;
      break;
   case "BOTTOM":
      postop = ban_height;
      posleft = 0;
      break;
   case "LEFT":
      postop = 0;
      posleft = ban_width * -1;
      break;
   case "RIGHT":
      postop = 0;
      posleft = ban_width;
      break;
}

if (flashver == 7) {
   var parmclassid = "166B1BCA-3F9C-11CF-8075-444553540000";
   var parmshockmod = "(IsObject(CreateObject(\"SWCtl.SWCtl.7\")))"
}
else {
   var parmclassid = "D27CDB6E-AE6D-11cf-96B8-444553540000";
   var parmshockmod = "(IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash." + flashver + "\")))"
}

var ShockMode = 0;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if (plugin&& parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= '+flashver+' )
{
ShockMode = 1;
}
else if ((navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0)&& (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0))
{
document.write('<SCR' + 'IPT LANGUAGE=VBScript> \n');
document.write('on error resume next \n');
document.write('ShockMode = ' + parmshockmod + '\n ');
document.write('<\/SCR' + 'IPT>\n');
}

if ( ShockMode ) {
dclk_crea1 = '<OBJECT classid="clsid:'+parmclassid+'" ID=banner WIDTH="'+ban_width+'" HEIGHT="'+ban_height+'">';
dclk_crea1 += '<PARAM NAME="movie" VALUE="'+flash_banner+'?clickTag='+clickthrough_url+'"><PARAM NAME="wmode" VALUE="transparent"><PARAM NAME="Autostart" VALUE="true"><PARAM NAME="Quality" VALUE="high">';
dclk_crea1 += '<EMBED SRC="'+flash_banner+'?clickTag='+clickthrough_url+'" swLiveConnect=TRUE WIDTH="'+ban_width+'" HEIGHT="'+ban_height+'" TYPE="application/x-shockwave-flash" QUALITY="high"></EMBED>';
dclk_crea1 += '</OBJECT>';

dclk_crea2 = '<OBJECT classid="clsid:'+parmclassid+'" ID=banner WIDTH="'+exp_width+'" HEIGHT="'+exp_height+'">';
dclk_crea2 += '<PARAM NAME="movie" VALUE="'+flash_exp+'?clickTag='+clickthrough_url+'"><PARAM NAME="wmode" VALUE="transparent"><PARAM NAME="Autostart" VALUE="true"><PARAM NAME="Quality" VALUE="high">';
dclk_crea2 += '<EMBED SRC="'+flash_exp+'?clickTag='+clickthrough_url+'" swLiveConnect=TRUE WIDTH="'+exp_width+'" HEIGHT="'+exp_height+'" TYPE="application/x-shockwave-flash" QUALITY="high"></EMBED>';
dclk_crea2 += '</OBJECT>';

} else if (!(navigator.appName && navigator.appName.indexOf("Netscape")>=0 && navigator.appVersion.indexOf("2.")>=0)){
  dclk_crea1 = '<A HREF="'+clickthrough_url+'" TARGET="_blank">';
  dclk_crea1 += '<IMG SRC="'+bck_gif_file+'" WIDTH="'+ban_width+'" HEIGHT="'+ban_height+'" ALT="" BORDER="0"></a>';
  if (bck_expgif_file != "") {
    dclk_crea2 = '<A HREF="'+clickthrough_url+'" TARGET="_blank">';
    dclk_crea2 += '<IMG SRC="'+bck_expgif_file+'" WIDTH="'+exp_width+'" HEIGHT="'+exp_height+'" ALT="" BORDER="0"></a>';
  }
  else {dclk_crea2=""}
}

function dclk_show_expand()
{
 document.all.FlashDiv.style.visibility='hidden';	// Istrinti jeigu nera floatingo
 if (document.all) { dclk_expand.style.visibility='visible';}
 else if (navigator.userAgent.indexOf('Gecko')>0) { dclk_div["dclk_expand"].style.visibility='visible';}
}
function dclk_hide_expand()
{
  if (document.all) { dclk_expand.style.visibility='hidden';}
 else if (navigator.userAgent.indexOf('Gecko')>0) { dclk_div["dclk_expand"].style.visibility='hidden';}
}

if (document.all || navigator.userAgent.indexOf('Gecko')>0)
{ document.write('<div id="dclk_banner" style="position:relative; width:'+ban_width+'; height:'+ban_height+'; top:0px; left:0px; visibility:visible; z-index:10;">');
  document.write(dclk_crea1);
  document.write('<div id="dclk_expand" style="position:absolute; top:+postop+px; left:'+posleft+'px; width:'+exp_width+'; height:'+exp_height+'; visibility:hidden; z-index:10;">');
   document.write(dclk_crea2);
  document.write('<\/div>');
 document.write('<\/div>');
 dclk_div = document.getElementsByTagName("div");
}
else
{ document.write(dclk_crea1);
}
// Expand after click End



// Floating Start
var DoNotDisplayIA=1;
var dcswf="http://banners.adnet.lt/bridzita_500x400.swf" 
var dcgif="" 
var advurl="http://www.forumcinemas.lt/main_dis.php";
var dcadvurl = escape(advurl);
var dcminversion = 6;
var dcmaxversion = 7;
var plugin = false;
var dccreativewidth = "500";
var dccreativeheight = "500";
var dcfloattmr= "auto";
var tid;
var usag = window.navigator.userAgent
var brie = usag.indexOf ( "MSIE " )
 
function brieversion()
{
return usag.substring(brie+5, ( usag.indexOf(".", brie )+2));
}
 
function dcMoviePlay(){
document.FLASH_Interstitial.Play()
}
 
function checkFlashPlaying() {
 var flashPlaying = document.FLASH_Interstitial.isPlaying();
 var flashLoaded = document.FLASH_Interstitial.PercentLoaded();
 if (flashLoaded==100 && !flashPlaying) { 
  clearInterval(tid);  
  onFinishedPlaying();    
 }
}
 
function finishedPlaying() {
 tid = setInterval("checkFlashPlaying()", 500);
}
 

function onFinishedPlaying() {
 document.all.FlashDiv.style.visibility='hidden'; }
 
document.write('<A TARGET="_blank" HREF="' + dcadvurl + '"></A>');
 
if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0) && document.all) 
{
document.write('<scr'+'ipt language=VBScript>' + '\n' +
   'dcmaxversion = '+dcmaxversion + '\n' +
   'dcminversion = '+dcminversion + '\n' +
   'Do' + '\n' +
    'On Error Resume Next' + '\n' +
    'plugin = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.\" & dcmaxversion & \"\")))' + '\n' +
    'If plugin = true Then Exit Do' + '\n' +
    'dcmaxversion = dcmaxversion - 1' + '\n' +
    'Loop While dcmaxversion >= dcminversion' + '\n' +
  '<\/scr'+'ipt>');
}
IE4=(document.all);
NS4=(document.layers);
IE5=(navigator.appVersion.indexOf("5.0")!=-1)
Mac=(navigator.appVersion.indexOf("Mac")!=-1);
function calcOffset(){
 WinWidth=NS4?window.innerWidth-16:window.innerWidth?window.innerWidth:Mac?document.body.offsetWidth:document.body.offsetWidth-20
 return WinWidth/2
}
 
if (plugin)  {
var left = calcOffset()-250;
document.write('<div id="FlashDiv" style="position:absolute ;visibility:show; left:'+left+'; top:125; z-index:100">');
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" ');
document.write(' ID=FLASH_Interstitial  WIDTH="'+ dccreativewidth +'" HEIGHT="'+ dccreativeheight +'">');
document.write(' <PARAM NAME=movie VALUE="' + dcswf + '?clickTag='+ dcadvurl +'"><PARAM NAME=play VALUE=false><PARAM NAME=quality VALUE=autohigh><PARAM NAME=wmode VALUE=transparent>');
document.write(' </OBJECT></div>');

if (dcfloattmr=='none') {
 if ( brieversion() >= 5.5 ){
 document.onload = dcMoviePlay();}
 else {
 onFinishedPlaying(); 
 }
}
else if (dcfloattmr=='auto') {
 document.onload = dcMoviePlay();
 finishedPlaying();
}
else if (dcfloattmr!='none' && dcfloattmr!='auto' && (dcfloattmr/1 >0)) {
 document.onload = dcMoviePlay();
 setTimeout("onFinishedPlaying()",dcfloattmr*1000); 
}
}
// Floating End
