//Global JS
//SIFR IT UP
var currentpage = window.location.hostname.toString();

if (currentpage.indexOf("cms.omedix.com") >= 0)
{
   	//SIFR NO!
} else {
	// SIFR
	var verlag 		= 	{ src: '../_swf/verlag.swf' };
	
	sIFR.activate(verlag);
	
	sIFR.replace(verlag, {
		selector: '#content h1, #contentfull h1',
		wmode : 'transparent'
		,css: {
			'.sIFR-root': { 'font-size' : '30px' , 'color' : '#FEEF8D', 'font-weight': 'bold', 'text-transform' : 'uppercase'}
		}
	});
	
		
	/*sIFR.replace(verlag, {
		selector: '#content h4',
		wmode : 'transparent',
		css: [
			'.sIFR-root { font-size:16px; color: #000000;}'
			,'a { text-decoration: underline; font-size: 18px; color: #000000;  }'
			,'a:link { color: #000000; }'
			,'a:hover { color: #333333; }'
		] 	
	});*/
}

//OTHER STUFF
$(document).ready(function(){
	/* ZEBRAAAA */
	$(".zebra tr:nth-child(odd)").addClass("odd");
	
	/* Searchbar fixin' */
	$(".librarysearch").click(function(){
		$(this).attr("value","");
	});
	
	/*$("body").append("<div id='ToolTipDiv'></div>");
		$("a[title]").each(function() {
		$(this).hover(function(e) {
		  $().mousemove(function(e) {
			var tipY = e.pageY + 16;
			var tipX = e.pageX + 16;
			$("#ToolTipDiv").css({'top': tipY, 'left': tipX});
		  });
		  $("#ToolTipDiv").html($(this).attr('title')).stop(true,true).fadeIn("fast");
		  $(this).removeAttr('title');
		}, function() {
			$("#ToolTipDiv").stop(true,true).fadeOut("fast");
			$(this).attr('title', $("#ToolTipDiv").html());
		});
	});*/
});
