window.onload = function(){

};

$(document).ready(function(){         
   
   Shadowbox.init();
   
   
   //jquery photogallery scrollable
   $('.contentpanel .scrollable').scrollable({
		loop: true,
		circular: true, 
		mousewheel: true,
		clickable: false,
		items:'ul.items',
		size: 1,
		speed: 1000
	});
	
	//jquery photogallery scrollable
	   $('.gallery .scrollable').scrollable({
			loop: false,
			circular: false, 
			mousewheel: false,
			clickable: false,
			size: 1,
			items:'ul.items',
			speed: 1000
		});
		
		$('.photogallery .scrollable').scrollable({
			loop: true,
			circular: false, 
			mousewheel: true,
			clickable: false,
			items:'ul.items',
			speed: 1000
		});
		
		// For Attachment 
		$("a[href*=.pdf]").addClass("pdf");
		$("a[href*=.jpg], a[href*=.gif], a[href*=.png]").addClass("jpg");
		$("a[href*=.swf], a[href*=.fla]").addClass("swf");
		$("a[href*=.txt],  a[href*=.xls], a[href*=.doc], , a[href*=.rtf], , a[href*=.pps]").addClass("doc");
		$("a[href*=.mpg], a[href*=.mpeg], a[href*=.avi], a[href*=.mv2], a[href*=.mov], a[href*=.mp4], a[href*=.wmv]").addClass("video");
		$("a[href*=.zip], a[href*=.rar], a[href*=.ace], a[href*=.tar.gz], a[href*=.tgz]").addClass("zip");
		$("a[href*=.mp3], a[href*=.aiff], a[href*=.wav], a[href*=.ogg], a[href*=.wma]").addClass("audio");
		$("a[href*=@]").addClass("email");

});




/* Browser update */
var $buoop = {} 
$buoop.ol = window.onload; 
window.onload=function(){ 
 if ($buoop.ol) $buoop.ol(); 
 var e = document.createElement("script"); 
 e.setAttribute("type", "text/javascript"); 
 e.setAttribute("src", "http://browser-update.org/update.js"); 
 document.body.appendChild(e); 
}



