function getSunumax(dom)
{
datetoday = new Date();
timenow=datetoday.getTime();
datetoday.setTime(timenow);
thehour = datetoday.getHours();
theday = datetoday.getDay();


var anasayfa = "http://"+dom+"/";
var indexx = "http://"+dom+"/index.htm";
var indexxx = "http://"+dom+"/index.html";


switch (window.location.href) 
{
   case anasayfa:
work = "1";
      break 
   case indexx:
work = "1";
      break
   case indexxx:
work = "1";
      break
   default:
work = "0";
      break

}


if(work == "1") {

if(theday == "0") {

if (thehour >= 22) {
display = "iyigeceler.flv";
work = "1";
} else if (thehour >= 19) {
display = "iyiaksamlar.flv";
work = "1";
} else if (thehour >= 9) {
display = "iyigunler.flv";
work = "1"; 
} else if (thehour >= 6) {
display = "merhaba.flv";
work = "1";
} else if (thehour >= 0) {
display = "iyigeceler.flv";
work = "1";
}
else {
display = "merhaba.flv";
work = "0";
}
var zaman = display;

} else {

if (thehour >= 22) {
display = "iyigeceler.flv";
work = "1";
} else if (thehour >= 19) {
display = "iyiaksamlar.flv";
work = "1";
} else if (thehour >= 9) {
display = "iyigunler.flv";
work = "0"; 
} else if (thehour >= 6) {
display = "merhaba.flv";
work = "1";
} else if (thehour >= 0) {
display = "iyigeceler.flv";
work = "1";
}
else {
display = "merhaba.flv";
work = "0";
}
var zaman = display;
}

}

if(work == "1") {
document.write('<style type="text/css">#divindex { z-index: 99999;  position: fixed;  *position:absolute; overflow:hidden; bottom: 0px;  right: 0px;  width: 320px;  height: 240px; *top:expression(eval(document.compatMode && document.compatMode=="CSS1Compat") ? documentElement.scrollTop+(documentElement.clientHeight-this.clientHeight) : document.body.scrollTop+(document.body.clientHeight-this.clientHeight));} #im_popupDiv {  position: relative;}</style><div id="divindex" style=""><div id="im_popupDiv" style="height: 0pt; top: 0pt; left: 0px;"><div id="im_blue"><object height="240" align="middle" width="320" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0" id="objindex" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><param value="http://flv2.adport.com.tr/video/kcl/kcl_player_last.swf?lfID=index&amp;cOMW=0&amp;cOMURL=http%3A//www.sunumax.com&amp;cOMWP=0&amp;tDLB=0&amp;tDLA=0&amp;fIE=1&amp;fIET=1&amp;fIEP=1&amp;fOE=1&amp;fOET=1&amp;pBBE=0&amp;pBBBOF=0&amp;pBAE=0&amp;pBAOF=0&amp;rOTPE=0&amp;rOTPURL=none&amp;sFRAME=0&amp;lfAffiliateID=none&amp;sURL_Site=http%3A//www.elmakrom.com/&amp;lf_flv=http://flv2.adport.com.tr/yenisunumax/'+ display +'&amp;lf_gndr=0&amp;lf_gndr_link=" name="movie"><param value="high" name="quality"><param value="transparent" name="wmode"><param value="always" name="allowScriptAccess"><param value="false" name="loop"><embed height="240" align="middle" width="320" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="objindex" loop="false" wmode="transparent" quality="high" allowscriptaccess="always" src="http://flv2.adport.com.tr/video/kcl/kcl_player_last.swf?lfID=index&amp;cOMW=0&amp;cOMURL=http%3A//www.sunumax.com&amp;cOMWP=0&amp;tDLB=0&amp;tDLA=0&amp;fIE=1&amp;fIET=1&amp;fIEP=1&amp;fOE=1&amp;fOET=1&amp;pBBE=0&amp;pBBBOF=0&amp;pBAE=0&amp;pBAOF=0&amp;rOTPE=0&amp;rOTPURL=none&amp;sFRAME=0&amp;lfAffiliateID=none&amp;sURL_Site=http%3A//www.elmakrom.com/&amp;lf_flv=http://flv2.adport.com.tr/yenisunumax/' + display + '&amp;lf_gndr=0&amp;lf_gndr_link="></object></div></div></div></div><iframe scrolling="no" height="0" width="0" style="display: none;" id="yilcan" name="yilcan"></iframe>');
}

}

var timerID;
function HideTimedLayer(id)
{  
    clearTimeout(timerID);
    document.getElementById(id).style.display = "none";
}
function hideDiv(id)
{
  setTimeout("HideTimedLayer(\"" + id + "\")", 1);
}
function timedLayer(id)
{
  setTimeout("HideTimedLayer(\"" + id + "\")", 10000);
}
//timedLayer('divindex');