function addFlash(SWF,PP,W,H){var FC='flashcontent',OK=swfobject,V;PP=PP||'';W=W||'100%';H=H||'100%';
if(OK){swfobject.embedSWF(PP+'swf/'+SWF,FC,W,H,'9',PP+'swf/expressinstall.swf',{},
{menu:'false',allowfullscreen:'true',allowscriptaccess:'always',wmode:'transparent'},{id:FC});
if(typeof swfobject.getFlashPlayerVersion=='function'){V=swfobject.getFlashPlayerVersion();OK=(V&&parseInt(V.major,10)>8);}else OK=0;
OK=OK&&(document.getElementById(FC).tagName.toUpperCase()!='DIV');}
if(!OK)document.getElementById('noscript').className='nojs';return OK;}
function addMedical(){
var W='100%',H='100%',Z,FF=!document.all;
if(FF){Z=getFlashMinSize();W=Z.W;H=Z.H;}
addFlash('ea-medical-tourism.swf','./',W,H);
if(FF)window.onresize=flashOnResize;
}
function addWheel(){addFlash('cmnWheel.swf','../','600','500');}
function flashOnResize(){var FC=document.getElementById('flashcontent'),Z=getFlashMinSize(),P='px';if(FC){FC.style.width=Z.W+P;FC.style.height=Z.H+P;}}
function getFlashMinSize(){var W=window.innerWidth-16,H=window.innerHeight-16;if(W<600)W=600;if(H<500)H=500;return {W:W,H:H};}
function addVideoPlayer(){var id='flashcontent',flashvars={LocalPlayer:(window.location.href.substr(0,4)!='http'),production:true},params={menu:'false',allowfullscreen:'true',allowscriptaccess:'always'},attr={id:id};if(typeof swfobject!='undefined')swfobject.embedSWF('player/blue_player615.swf',id,'700','350','9.0.28','player/expressInstall.swf',flashvars,params,attr);}
if(typeof $=='function'){
$.fn.hint=function(v,h){var h=h||'hint',z='',t=$(this),w=t.attr('title');v=v||w||z;t.focus(function(){
if(t.attr(h)==h)t.removeClass(h).attr(h,z).val(z);}).blur(function(){
var o=$.trim(t.val());if(o==z||o==v)t.addClass(h).attr(h,h).val(v);}).blur();return t;}

$(function(){
var DS='div.slide',V=':visible',F=':first',A='a.services',DT=300,Z='selected',DP=$('div.products'),DPA=DP.find(A),DSF=DS+F,DSV=DS+V,err;
DP.find(DS).hide();
DPA.click(function(){var t=$(this),d=t.next(DSF);DP.find(DSV).slideUp(DT);DPA.removeClass(Z);if(!d.is(V)){d.slideDown(DT);t.addClass(Z);}});
$('#frmSearch input.box').hint();
$('#content input.boxnews').hint();

// Add Firebug Lite Button to IE6
//if(document.all)$(document.body).append("<div style=\"padding:24px;float:left;clear:both;display:block;border:1px solid #666;\"><a style=\"font-size:12px;padding:24px;\" href=\"javascript:var%20firebug=document.createElement('script');firebug.setAttribute('src','http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js');document.body.appendChild(firebug);(function(){if(window.firebug.version){firebug.init();}else{setTimeout(arguments.callee);}})();void(firebug);\">FIREBUG</a><b>&nbsp;</b></div>");

// Force IE6 CSS Image Cache
if(document.all&&document.execCommand&&!window.opera&&$.browser.msie&&parseInt($.browser.version)==6)
try{document.execCommand("BackgroundImageCache",false,true);}catch(err){}
$('a[href=#]').attr('href','javascript:void(0);');

$('a[href*=.pdf]').addClass('pdf').append('<i class="pic pdf">&nbsp;</i>');
});}
