function banner_view(){                                                                                                                                                          
$('#tok').html("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"100%\" height=\"100%\" id=\"FlashID\" title=\"banner\">"+                                 
 "<param name=\"movie\" value=\"/banner.swf\" />"+                                                                                                                                
"<param name=\"quality\" value=\"high\" />"+                                                                                                                                     
      "<param name=\"wmode\" value=\"opaque\" />"+                                                                                                                               
        "<param name=\"swfversion\" value=\"6.0.65.0\" />"+                                                                                                                      
          "<param name=\"FlashVars\" value=\"skipurl=http://hestar.net&timerSec=15&siteurl=http://talkoclock.com/?ref=1012\">"+                                                 
"<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don't want users to see the prompt. -->"+ 
              "<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->"+                                                                                 
                "<!--[if !IE]>-->"+                                                                                                                                              
                  "<object type=\"application/x-shockwave-flash\" data=\"/banner.swf\" width=\"100%\" height=\"100%\">"+                                                          
                      "<!--<![endif]-->"+                                                                                                                                        
                          "<param name=\"quality\" value=\"high\" />"+                                                                                                           
                              "<param name=\"wmode\" value=\"opaque\" />"+                                                                                                       
                                  "<param name=\"swfversion\" value=\"6.0.65.0\" />"+                                                                                            
                                       "<param name=\"FlashVars\" value=\"skipurl=http://hestar.net&timerSec=15&siteurl=http://talkoclock.com/?ref=1012\">"+                      
                                            "<!--[if !IE]>-->"+                                                                                                                  
                                              "</object>"+                                                                                                                       
                                                "<!--<![endif]-->"+                                                                                                              
"</object>");                                                                                                                                                                    
$('#wrap').css('display', 'none');                                                                                                                                               
$('#tok').css('display', 'block');                                                                                                                                               
}                                                                                                                                                                                
function createCookie(name,value,days) {                                                                                                                                         
    if (days) {                                                                                                                                                                  
        var date = new Date();                                                                                                                                                   
        date.setTime(date.getTime()+(days*24*60*60*1000));                                                                                                                       
        var expires = "; expires="+date.toGMTString();                                                                                                                           
    }                                                                                                                                                                            
    else var expires = "";                                                                                                                                                       
    document.cookie = name+"="+value+expires+"; path=/";                                                                                                                         
}                                                                                                                                                                                
function readCookie(name) {                                                                                                                                                      
    var nameEQ = name + "=";                                                                                                                                                     
    var ca = document.cookie.split(';');                                                                                                                                         
    for(var i=0;i < ca.length;i++) {                                                                                                                                             
        var c = ca[i];                                                                                                                                                           
        while (c.charAt(0)==' ') c = c.substring(1,c.length);                                                                                                                    
        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);                                                                                                  
    }                                                                                                                                                                            
    return null;                                                                                                                                                                 
}                                                                                                                                                                                
function eraseCookie(name) {                                                                                                                                                     
        createCookie(name,"",-1);                                                                                                                                                
} 


  var timers = new Object();
  function set(ul, block) {                                                                                                                                             
    var list = document.getElementById(ul);                                                                                                                         
    list.style.display = (block) ? "block" : "none";                                                                                                                
  }                                                                                                                                                                     
  function showList(ul) {                                                                                                                                               
    set(ul, true);                                                                                                                                                  
    clearTimeout(timers[ul]);                                                                                                                                       
  }                                                                                                                                                                     
  function hideList(ul) {                                                                                                                                               
    set(ul, false);                                                                                                                                                 
    var waiting = "set('" + ul + "', false)";                                                                                                                       
    timers[ul] = setTimeout(waiting, 500);                                                                                                                          
  }                                                                                                                                                                     
function add2Fav(x){
    if (document.all  && !window.opera) {
         if (typeof window.external == "object") {
            window.external.AddFavorite(document.location, document.title);
            return true;
          }
          else return false;

    }
    else{
        x.href=document.location;
        x.title=document.title;
        x.rel = "sidebar";
        return true;
    }
}

function showTab(id){
	for(i=1;i<6;i++){
		el = document.getElementById('tabHead'+i);
		if(el){
			el.className = (id==i ? 'tabActive' : 'tabInactive');
		}
		el = document.getElementById('tabContent'+i);
		if(el){
			el.style.display = (id==i ? 'block' : 'none');
		}
	}
	return false;
}

function ce (tagName) {	return document.createElement(tagName) }

function sendQuery(url) {

	var s = ce('script');

	s.type='text/javascript';

	s.language='Javascript';

	s.src=url;

	document.documentElement.firstChild.appendChild(s);

}

function doCheck(tid){
	refreshImg = document.getElementById('refresh');
	if(refreshImg)
		refreshImg.src='http://www.vertor.com/images/but_refresh_anim.gif';
	sendQuery('http://dl.vertor.com/check_vt.php?id='+tid);
	return false;
}

