
var d = new Date();
var c_hour = d.getHours();
var c_min = d.getMinutes();
var c_sec = d.getSeconds();
var t = c_hour + ":" + c_min + ":" + c_sec;






$(document).ready(function() {
	
		//calc_Page_Content_Size();
		
		
		});


function calc_Page_Content_Size() {
var pc_height = $('.page_content').height(); 
var home_height = $('.home_background').height(); 
if (home_height > pc_height) {
	pc_height = home_height;
}


//pc_height = pc_height-1;
//alert(pc_height);
var no_of_grids = Math.ceil(pc_height/33);
if (no_of_grids < 13) {
	no_of_grids = 13;
	}


var new_height = (no_of_grids*33);
new_height = new_height+1;
//alert(new_height);
$('.page_content').css("height",new_height+"px");
}
		
		
		
		
		
		
	
		
		
		
		
	
		
		
		
		
		function strstr (haystack, needle, bool) {
    // Finds first occurrence of a string within another  
    // 
    // version: 1003.2411
    // discuss at: http://phpjs.org/functions/strstr
    // +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   bugfixed by: Onno Marsman
    // +   improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // *     example 1: strstr('Kevin van Zonneveld', 'van');
    // *     returns 1: 'van Zonneveld'
    // *     example 2: strstr('Kevin van Zonneveld', 'van', true);
    // *     returns 2: 'Kevin '
    // *     example 3: strstr('name@example.com', '@');
    // *     returns 3: '@example.com'
    // *     example 4: strstr('name@example.com', '@', true);
    // *     returns 4: 'name'
    var pos = 0;
    
    haystack += '';
    pos = haystack.indexOf( needle );
    if (pos == -1) {
        return false;
    } else{
        if (bool){
            return haystack.substr( 0, pos );
        } else{
            return haystack.slice( pos );
        }
    }
}
		

	
	
 





	
