function initializeit(){

/** 
 * @projectDescription	Simple Equal Columns
 * @author 	Matt Hobbs
 * @version 	0.01 
 */
jQuery.fn.equalCols = function(){
	//Array Sorter
	var sortNumber = function(a,b){return b - a;};
	var heights = [];
	//Push each height into an array
	$(this).each(function(){
		heights.push($(this).height());
	});
	heights.sort(sortNumber);
	var maxHeight = heights[0];
	return this.each(function(){
		//Set each column to the max height
		$(this).css({'height': maxHeight});
	});
};
//Usage
jQuery(function($){
	//Select the columns that need to be equal e.g
	$('#content-side,#content-main').equalCols();
});

/* Delay Function */
$.fn.delay = function(time, callback) { return this.animate({ opacity: '+=0' }, time, callback);}
/* -------------- */

jQuery(function($){
		$("a[rel^='prettyPhoto']").prettyPhoto({opacity: 0.90,showTitle: false,theme:'light_square'});
		$('.slogan').cycle({ fx: 'fade' });
		$('.slideshow').cycle({ fx: 'fade' });
		$("#carousel").easySlider({
		    auto: true,
		    pause:			5000,
		    continuous: true
			});
		

	/* Fade IN */
/*
		$("#header").css('opacity', '0');
		$("#header").animate({opacity:'1'},{duration:1000});
		$("#content-wrap").css('opacity', '0');
		$("#content-wrap").delay(1000).animate({opacity:'1'},{duration:1000});
		$("#footer").css('opacity', '0');
		$("#footer").delay(2000).animate({opacity:'1'},{duration:1000});
*/
					
});
	
/* 	SLIDING BOX */
	//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
	//Vertical Sliding
	$('.boxgrid.slidedown').hover(function(){
	    $(".cover", this).stop().animate({top:'-260px'},{queue:false,duration:300});
	}, function() {
	    $(".cover", this).stop().animate({top:'0px'},{queue:false,duration:300});
	});
	//Horizontal Sliding
	$('.boxgrid.slideright').hover(function(){
	    $(".cover", this).stop().animate({left:'325px'},{queue:false,duration:300});
	}, function() {
	    $(".cover", this).stop().animate({left:'0px'},{queue:false,duration:300});
	});
	//Diagnal Sliding
	$('.boxgrid.thecombo').hover(function(){
	    $(".cover", this).stop().animate({top:'260px', left:'325px'},{queue:false,duration:300});
	}, function() {
	    $(".cover", this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
	});
	//Partial Sliding (Only show some of background)
	$('.smallgrid li .peek').hover(function(){
	    $(".cover", this).stop().animate({bottom:'40px'},{queue:false,duration:160});
	}, function() {
	    $(".cover", this).stop().animate({bottom:'0px'},{queue:false,duration:160});
	});
	//Full Caption Sliding (Hidden to Visible)
	$('.boxgrid.captionfull').hover(function(){
	    $(".cover", this).stop().animate({top:'160px'},{queue:false,duration:160});
	}, function() {
	    $(".cover", this).stop().animate({top:'260px'},{queue:false,duration:160});
	});
	//Caption Sliding (Partially Hidden to Visible)
	$('.boxgrid.caption').hover(function(){
	    $(".cover", this).stop().animate({top:'160px'},{queue:false,duration:160});
	}, function() {
	    $(".cover", this).stop().animate({top:'220px'},{queue:false,duration:160});
	});
/* 	END SLIDING BOX */


	
}/* end initializeit */

	var message="Copyright 2010 by Promax Design Pte Ltd. All rights reserved. ";

	function clickIE4(){
	if (event.button==2){
	alert(message);
	return false;
	}
	}
	function clickNS4(e){
	if (document.layers||document.getElementById&&!document.all){
	if (e.which==2||e.which==3){
	alert(message);
	return false;
	}
	}
	}
	
	if (document.layers){
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS4;
	}
	else if (document.all&&!document.getElementById){
	document.onmousedown=clickIE4;
	}
	
	document.oncontextmenu=new Function("alert(message);return false")
