// JavaScript Document
$(function() {
	$("#breadcrumb").corner("12px top");
	$("#footer").corner("15px bottom");
	$(".bgroundcontent").corner("15px");
	$(".roundcontent").corner("15px");
	$("#marketing").corner("15px");
	$("#toparchive").corner("15px");
	$(".archives").corner("15px");
	$("#registerprivacy").corner("15px top");
	$("#register2").corner("15px bottom");
	$("#emailtofriend").corner("15px top");
	$("#ratethischart").corner("15px top");
	$("#preferences").corner("15px");
	$("#header").corner("15px");
	$("#camp-body").corner("15px");
	$(".comment").corner("8px");

$("input#tcisearch").click(function() {
$("input#tcisearch").val("");
});

$("input#uemailid").click(function() {
$("input#uemailid").val("");
});

$("input#upassword").click(function() {
$("input#upassword").val("");
});
//blur
$("#uemailid").blur( function () {
if($("#uemailid").val()=="")
 $("#uemailid").val("Login: email");
 });//end blur
$("#upassword").blur( function () {
if($("#upassword").val()=="")
 $("#upassword").val("Password");
 });//end blur
$("#tcisearch").blur( function () {
if($("#tcisearch").val()=="")
 $("#tcisearch").val("Search Tech Channel Index");
 });//end blur

//Screen resolutions
if(screen.width>=1152 && screen.width < 1280)
$("#topnavigation").css({left:"265px"});
if(screen.width >= 1280 && screen.width < 1400)
$("#topnavigation").css({left:"330px"});
if(screen.width >= 1400 && screen.width < 1600)
$("#topnavigation").css({left:"400px"});
if(screen.width >= 1600 && screen.width < 1900 )
$("#topnavigation").css({left:"500px"});
if(screen.width >= 1900 )
$("#topnavigation").css({left:"600px"});


});

function todayDate(){
var d = new Date();	
var month=new Array(12);
month[0]="January";
month[1]="February";
month[2]="March";
month[3]="April";
month[4]="May";
month[5]="June";
month[6]="July";
month[7]="August";
month[8]="September";
month[9]="October";
month[10]="November";
month[11]="December";

toDay = d.getDate()+" "+month[d.getMonth()]+" "+ d.getFullYear();
return toDay;
}

function removeHash(url){
url = ""+url;
url1 = url.split("#");
return url1[0];
}