
/******** Copyright 2007-2009 omedia24 GmbH  ***********/

//Seite als Startseite festlegen
function vareside(){	
    var homepage = location.href;
	document.body.style.behavior='url(#default#homepage)';
	document.body.setHomePage( homepage );
}

//Seite besuchen
 function getURL(name)
{   
    //bookmark URL
    var destURL = "";
    
    switch (name) 
    {    
      case 'rss_news': 
      destURL += "http://www.reise-ziele-tipps.de/res/xml/news.xml";
      break; 
      case 'rss_gewinnspiele': 
      destURL += "http://www.reise-ziele-tipps.de/res/xml/gewinnspiele.xml";
      break; 
    }
  //Anfrage senden
  window.open(destURL);
}

//Seite bookmarken
 function bookmarkURL(name)
{   
    //bookmark URL
    var destURL = "";
    
    switch (name) 
    {    
      case 'misterwong': 
      destURL += "http://www.mister-wong.de/index.php?action=addurl&bm_url="+encodeURIComponent(location.href)+"&bm_description="+encodeURIComponent(document.title)+"";;
      break;       
      case 'icio': 
      destURL += "http://www.icio.de/add.php?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
      break; 
      case 'folkd': 
      destURL += "http://www.folkd.com/page/submit/"+location.href+"";
      break;   
      case 'yigg': 
      destURL += "http://www.yigg.de/neu?exturl="+encodeURIComponent(location.href)+"";
      break; 
      case 'linkarena': 
      destURL += "http://linkarena.com/bookmarks/addlink/?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
      break;
      case 'simpy': 
      destURL += "http://www.simpy.com/simpy/LinkAdd.do?href="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
      break;
      case 'delicio': 
      destURL += "http://del.icio.us/post?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
      break;
      case 'reddit': 
      destURL += "http://reddit.com/submit?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
      break;
      case 'digg': 
      destURL += "http://digg.com/submit?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
      break;
      case 'furl': 
      destURL += "http://www.furl.net/storeIt.jsp?u="+encodeURIComponent(location.href)+"&t="+encodeURIComponent(document.title)+"";
      break;
      case 'yahoo': 
      destURL += "http://de.bookmarks.yahoo.com?t="+encodeURIComponent(document.title)+"u="+encodeURIComponent(location.href)+"";
      break;
      case 'spurl': 
      destURL += "http://www.spurl.net/spurl.php?v=3&title="+encodeURIComponent(document.title)+"&url="+encodeURIComponent(location.href)+"";
      break;
      case 'google': 
      destURL += "http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
      break;
      case 'blinklist': 
      destURL += "http://de.blinklist.com/?Action=Blink/addblink.php&Name="+encodeURIComponent(document.title)+"&Url="+encodeURIComponent(location.href)+"";
      break;
      case 'blogmarks': 
      destURL += "http://www.blogmarks.net/my/marks,new?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
      break;
      case 'diigo': 
      destURL += "http://www.diigo.com/post?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
      break;
      case 'technorati': 
      destURL += "http://technorati.com/faves/seoportal?add="+encodeURIComponent(location.href)+"";
      break;
      case 'newsvine': 
      destURL += "http://www.newsvine.com/_wine/save?u="+encodeURIComponent(location.href)+"";
      break;
      case 'magnolia': 
      destURL += "http://ma.gnolia.com/bookmarklet/add?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
      break;
      case 'smarking': 
      destURL += "http://smarking.com/editbookmark/?url="+encodeURIComponent(location.href)+"";
      break;
      case 'netvouz': 
      destURL += "http://www.netvouz.com/action/submitBookmark?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
      break;
      case 'oneview': 
      destURL += "http://www.oneview.de/quickadd/neu/addBookmark.jsf?URL="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
      break;
      case 'bonitrust': 
      destURL += "http://www.bonitrust.de/account/bookmark/?bookmark_url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
      break;
      case 'webnews': 
      destURL += "http://www.webnews.de/einstellen?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(document.title)+"";
      break;
  }
  //Anfrage senden
  window.open(destURL);
}

//Seite besuchen
function checkWindow(url)
{       
    var params = document.URL.split("?")[1];
    var par1="";
    if (params != null ) 
    try 
    {
      par1=params.split("=")[0];
      
      if (par1 != null )
      {
         if (par1 == "urlID" )
         {    
            window.blur();                          
            setTimeout('window.close();', 10000);
         }
      }
    } 
    catch (e) {}
}
