//Global JS

//alert(window.location);

var currentpage = window.location.hostname.toString();

if (currentpage.indexOf("cms.omedix.com") >= 0)
{
    // DON'T RUN SIFR
} else {
	// SIFR
   	var futura = {
      src: '../_swf/futura.swf'
    };

	sIFR.activate(futura);
	
	sIFR.replace(futura, {
	  selector: '#contentArea h1',
	  wmode : 'transparent'
	  ,css: {
		'.sIFR-root': { 'font-size' : '36px' , 'color' : '#171717'}
	  }
	});
	
	sIFR.replace(futura, {
	  selector: '#promo h1',
	  wmode : 'transparent'
	  ,css: {
		'.sIFR-root': { 'font-size' : '24px' , 'color' : '#ffffff'}
	  }
	});
	
	sIFR.replace(futura, {
	  selector: '.frontcol h2',
	  wmode : 'transparent'
	  ,css: {
		'.sIFR-root': { 'font-size' : '20px' , 'color' : '#171717'}
	  }
	});
	
	sIFR.replace(futura, {
	  selector: '#banner span',
	  wmode : 'transparent'
	  ,css: {
		'.sIFR-root': { 'font-size' : '30px' , 'color' : '#ffffff'}
	  }
	});
	
}



$(function(){
	var sitename = "K.A. Hamdy, MD";
			
	if ($("#content h1").attr("title") != "") {
		var sectiontitle = $("#content h1").attr("title");
	} else { 
		var sectiontitle = $("#content h1").text();
	} 
	
	if (sectiontitle == undefined) {
		var sectiontitle = $("h2:first").text();
	} 
	
	var pagetitle = sectiontitle + " - " + sitename;
		
	//$("title").text(pagetitle);	
});