(function($) {

$.extend({
	metadata : {
		defaults : {
			type: 'class',
			name: 'metadata',
			cre: /({.*})/,
			single: 'metadata'
		},
		setType: function( type, name ){
			this.defaults.type = type;
			this.defaults.name = name;
		},
		get: function( elem, opts ){
			var settings = $.extend({},this.defaults,opts);
			// check for empty string in single property
			if ( !settings.single.length ) settings.single = 'metadata';
			
			var data = $.data(elem, settings.single);
			// returned cached data if it already exists
			if ( data ) return data;
			
			data = "{}";
			
			if ( settings.type == "class" ) {
				var m = settings.cre.exec( elem.className );
				if ( m )
					data = m[1];
			} else if ( settings.type == "elem" ) {
				if( !elem.getElementsByTagName ) return;
				var e = elem.getElementsByTagName(settings.name);
				if ( e.length )
					data = $.trim(e[0].innerHTML);
			} else if ( elem.getAttribute != undefined ) {
				var attr = elem.getAttribute( settings.name );
				if ( attr )
					data = attr;
			}
			
			if ( data.indexOf( '{' ) <0 )
			data = "{" + data + "}";
			
			data = eval("(" + data + ")");
			
			$.data( elem, settings.single, data );
			return data;
		}
	}
});


$.fn.metadata = function( opts ){
	return $.metadata.get( this[0], opts );
};

})(jQuery);




jQuery(document).ready(function()
{

    var myTabs = jQuery( "#tabs" ).tabs();  
    myTabs.tabs({fx:{opacity: "toggle"}}).tabs( 'rotate' , 3000 );
    
    jQuery( "#sidebartabs" ).tabs(
    {

    });
    
    jQuery("#navigation li").hover
    (
	    function ()
	    {
	    	jQuery(this).children("div").show(0);99
	    	jQuery(this).children("div").css('zIndex','999999999999999999999');
	    	jQuery("#tabs").css('zIndex','1');
	    	jQuery(".slider").css('zIndex','1');
		}, 
		function ()
		{
			jQuery(this).children("div").hide(0);
		}
    );

	$('.l_01').click(function(){window.location="http://www.dsl-anbieter.com/internet-anbieter/"});
	$('.l_02').click(function(){window.location="http://www.dsl-anbieter.com/dsl-vergleich/"});
	$('.l_03').click(function(){window.location="http://www.dsl-anbieter.com/umts-tarif-vergleich/"});
	$('.l_04').click(function(){window.location="http://www.dsl-anbieter.com/umts-flatrate/"});
	$('.l_05').click(function(){window.location="http://www.dsl-anbieter.com/umts-tarif-vergleich/"});
	$('.l_18').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-lexikon"});
	$('.l_19').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-themen/absicherung-des-wlan-netztes-leicht-gemacht0805201001.html"});
	$('.l_20').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-themen/sonderkundigungsrecht-bei-zu-geringer-dsl-geschwindigkeit.html"});
	$('.l_21').click(function(){window.location="http://www.dsl-anbieter.com/kabel-dsl/"});
	$('.l_22').click(function(){window.location="http://www.dsl-anbieter.com/kabel-anbieter/"});
	$('.l_news0').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-news/1und1"});
	$('.l_news1').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-news/alice"});
	$('.l_news2').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-news/allgemein"});
	$('.l_news3').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-news/congstar"});
	$('.l_news4').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-news/duffy-fon"});
	$('.l_news5').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-news/kabel-deutschland"});
	$('.l_news6').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-news/kabelbw"});
	$('.l_news7').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-news/o2"});
	$('.l_news8').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-news/t-home"});
	$('.l_news9').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-news/tele2"});
	$('.l_news10').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-news/telekom"});
	$('.l_news11').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-news/unitymedia"});
	$('.l_news12').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-news/versatel"});
	$('.l_news13').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-news/vodafone"});

	$('.topnav_news').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-news/"});
	$('.topnav_lexikon').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-lexikon/"});
	$('.topnav_themen').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/dsl-themen/"});
	$('.topnav_ratgeber').click(function(){window.location="http://www.dsl-anbieter.com/dsl-ratgeber/"});
	
	$('.single-tab').hover( function() { $(this).css( 'cursor', 'pointer' ); });
	$('.link_tab1').click(function(){window.location="http://www.dsl-anbieter.com/dsl-speedtest/"});
	$('.link_tab2').click(function(){window.location="http://www.dsl-anbieter.com/dsl-vergleich/"});	
	$('.link_tab3').click(function(){window.location="http://www.dsl-anbieter.com/internet-anbieter/"});	
	$('.link_tab4').click(function(){window.location="http://www.dsl-anbieter.com/dsl-ratgeber/dsl-verfuegbarkeit.html"});
	$('.link_tab5').click(function(){window.location="http://www.dsl-anbieter.com/dsl-angebote/"});
	$('.link_tab6').click(function(){window.location="http://www.dsl-anbieter.com/dsl-magazin/"});
	$('.link_tab7').click(function(){window.location="http://www.dsl-anbieter.com/lte/"});
	
});

