
var my_browser = navigator.userAgent

if(my_browser.indexOf ("MSIE 7") != -1)
{ var browser = "IE7"; }
else if(my_browser.indexOf ("Gecko") != -1)
{ var browser = "FF"; }

if (format == 'textbox')
{
  var price = '';

  var special_width = 206; // Default ist IE6
 
  if(browser == 'IE7') { var special_width = 210; }
  else if(browser == 'FF') { var special_width = 219; }
  
  if (layout == 0) // Textbox - 3 Spiele
  { 
    var game_counter = '3';
    var special_height = 178; // Default ist IE6
    
    if(browser == 'IE7') { var special_height = 175; }
    else if(browser == 'FF') { var special_height = 178; }    

  }
  else if (layout == 1) // Textbox - 5 Spiele
  { 
    var game_counter = '5';
    var special_height = 257; // Default ist IE6
    
    if(browser == 'IE7') { var special_height = 252; }
    else if(browser == 'FF') { var special_height = 253; }
    
  }
  
  else if (layout == 2)
  { 
    var special_height = 447; // Default ist IE6
    
    if(browser == 'IE7') { var special_height = 441; }
    else if(browser == 'FF') { var special_height = 470; }
     
  }

  if (layout == 2 && (chart_typ == 0 || chart_typ == 3))
  { var my_special_url = 'homepage_kombi_textkombi_5.html'; }
  else if (layout == 2 && (chart_typ == 1 || chart_typ == 4))
  { var my_special_url = 'pcgames_kombi_textkombi_5.html'; }
  else if (layout == 2 && (chart_typ == 2 || chart_typ == 5))
  { var my_special_url = 'easygames_kombi_textkombi_5.html'; }
  else if (chart_typ == 0)
  { var my_special_url = 'homepage_top_textbox_'+game_counter+'.html'; }
  else if (chart_typ == 1)
  { var my_special_url = 'pcgames_top_textbox_'+game_counter+'.html'; }
  else if (chart_typ == 2)
  { var my_special_url = 'easygames_top_textbox_'+game_counter+'.html'; }
  else if (chart_typ == 3)
  { var my_special_url = 'homepage_new_textbox_'+game_counter+'.html'; }
  else if (chart_typ == 4)
  { var my_special_url = 'pcgames_new_textbox_'+game_counter+'.html'; }
  else if (chart_typ == 5)
  { var my_special_url = 'easygames_new_textbox_'+game_counter+'.html'; }    
}

else if (format == 'bildbox')
{

  var price = '';

  if (layout == 0)
  { var game_counter = '3'; }
  else if (layout == 1)
  { var game_counter = '5'; }
  else if (layout == 2)
  { var game_counter = '4'; }  

  if (button == 0)
  {
    var special_width = 182; // Default ist IE6
    
    if(browser == 'IE7') { var special_width = 179; }
    else if(browser == 'FF') { var special_width = 179; }
    
    
    if (layout == 0)
    { 
      var special_height = 595;

      if(browser == 'IE7') { var special_height = 595; }
      else if(browser == 'FF') { var special_height = 576; }
       
    }
    else if (layout == 1)
    { 
      var special_height = 945;
      
      if(browser == 'IE7') { var special_height = 938; }
      else if(browser == 'FF') { var special_height = 905; }
    }     
  
    if (chart_typ == 0)
    { var my_special_url = 'homepage_top_bildbox_'+game_counter+'.html'; }
    else if (chart_typ == 1)
    { var my_special_url = 'pcgames_top_bildbox_'+game_counter+'.html'; }
    else if (chart_typ == 2)
    { var my_special_url = 'easygames_top_bildbox_'+game_counter+'.html'; }
    else if (chart_typ == 3)
    { var my_special_url = 'homepage_new_bildbox_'+game_counter+'.html'; }
    else if (chart_typ == 4)
    { var my_special_url = 'pcgames_new_bildbox_'+game_counter+'.html'; }
    else if (chart_typ == 5)
    { var my_special_url = 'easygames_new_bildbox_'+game_counter+'.html'; }
  }
  
  else if (button == 1)
  {
    var special_width = 182;  
    
    if(browser == 'IE7') { var special_width = 178; }
    else if(browser == 'FF') { var special_width = 178; }
    
    if (layout == 0)
    { 
      var special_height = 416;

      if(browser == 'IE7') { var special_height = 416; }
      else if(browser == 'FF') { var special_height = 420; }
       
    }
    else if (layout == 1)
    { 
      var special_height = 644;
      
      if(browser == 'IE7') { var special_height = 644; }
      else if(browser == 'FF') { var special_height = 644; }       
    }     
  
    if (chart_typ == 0)
    { var my_special_url = 'homepage_top_bild_'+game_counter+'.html'; }
    else if (chart_typ == 1)
    { var my_special_url = 'pcgames_top_bild_'+game_counter+'.html'; }
    else if (chart_typ == 2)
    { var my_special_url = 'easygames_top_bild_'+game_counter+'.html'; }
    else if (chart_typ == 3)
    { var my_special_url = 'homepage_new_bild_'+game_counter+'.html'; }
    else if (chart_typ == 4)
    { var my_special_url = 'pcgames_new_bild_'+game_counter+'.html'; }
    else if (chart_typ == 5)
    { var my_special_url = 'easygames_new_bild_'+game_counter+'.html'; }
  }
  
  
  if (layout == 2)
  {
    var special_width = 724;
    
    if(browser == 'IE7') { var special_width = 720; }
    else if(browser == 'FF') { var special_width = 680; }
    
    var special_height = 162;
    
    if(browser == 'IE7') { var special_height = 162; }
    else if(browser == 'FF') { var special_height = 162; }
  
    if (chart_typ == 0)
    { var my_special_url = 'homepage_top_bildquer_'+game_counter+'.html'; }
    else if (chart_typ == 1)
    { var my_special_url = 'pcgames_top_bildquer_'+game_counter+'.html'; }
    else if (chart_typ == 2)
    { var my_special_url = 'easygames_top_bildquer_'+game_counter+'.html'; }
    else if (chart_typ == 3)
    { var my_special_url = 'homepage_new_bildquer_'+game_counter+'.html'; }
    else if (chart_typ == 4)
    { var my_special_url = 'pcgames_new_bildquer_'+game_counter+'.html'; }
    else if (chart_typ == 5)
    { var my_special_url = 'easygames_new_bildquer_'+game_counter+'.html'; }
  }
  
}



if (format == 'einzelbild')
{

  if (button == 0)
  {
    var special_width = 120; // Default ist IE6
 
    var special_height = 219; // Default ist IE6
    
    if(browser == 'IE7')
    { var special_height = 228; }
    else if(browser == 'FF')
    { var special_height = 225; }
    
  }
  else if (button == 1)
  {
    var special_width = 120; // Default ist IE6
 
    var special_height = 200; // Default ist IE6
    
    if(browser == 'IE7') { var special_height = 200; }
    else if(browser == 'FF') { var special_height = 200; }
    
  }     

  var my_special_url = game_id+'.html';
  var layout = 'nothing';
  var chart_typ = 'nothing';
  var border = '0';
  var fhead = '#FFFFFF';  
  var sbox = '3';
  var shead = '4';
 
}

if (wback == '' || wback == undefined)
{ var wback = '#FFFFFF'; }

if (flink == '' || flink == undefined)
{ var flink = '#6666FF'; }

document.write('<iframe allowtransparency="true" scrolling="no" src="http://www.gamesload.de/de/affilinet/loader.php?ref='+ref+'&wback='+escape(wback)+'&format='+format+'&layout='+layout+'&button='+button+'&chart_typ='+chart_typ+'&border='+border+'&fborder='+escape(fborder)+'&fback='+escape(fback)+'&type='+type+'&sbox='+sbox+'&shead='+shead+'&flink='+escape(flink)+'&fbox='+escape(fbox)+'&fhead='+escape(fhead)+'&fprice='+escape(fprice)+'&price='+price+'&my_special_url='+my_special_url+'" frameborder="0" width="'+ special_width +'" height="'+ special_height +'">');  			
document.write('</iframe>');

