function closeifr() { $.fn.colorbox.close(); }

$(document).ready(function(){$(".shadow").colorbox({width:"740", height:"550", iframe:true});});
$(document).ready(function(){ $(".email_friend2").colorbox({width:"620", height:"480", iframe:true}); });
$(document).ready(function(){ $(".search").colorbox({width:"620", height:"480", iframe:true}); });
$(document).ready(function(){ $(".flash_shadow").colorbox({width:"622", height:"622", iframe:true, onClosed:function(){location.reload(true)}});});

$(document).ready(function () {
	if($('a#home_video').length == 1) {
		var url = $('a#home_video').attr('video_url');
		if(url.length > 30) {
			$("a.home_video").attr('href', url);
			$("a.home_video").colorbox({iframe:true, innerWidth:655, innerHeight:535});
			$('a#home_video').click();
		}
	}
});

$(document).ready(function () { $('div [style*="direction"]').css('direction','ltr'); });
$(document).ready(function(){
	$("img[link]").each(function(index, element) {
       	$(this).colorbox({width:"740", height:"550", iframe:true, href: $(this).attr('link')});
    });
});
