/* rotation images */
var rotationImgages = $(".images_rotation .img_container img");
var i = rotationImgages.length;

function getImage() {

    /*var rotationImgages = $(".images_rotation .img_container img");
    var i = rotationImgages.length;*/

	if (i >= 1) { $(rotationImgages[i]).fadeOut(1000); i -= 1; }
	else { $(rotationImgages).fadeIn(1000); i = rotationImgages.length - 1; }
	setTimeout('getImage()', '3000');
}

/* columns height checking*/

if ($(".leftcol").height() > $(".rh-panel").height())
	$(".rh-panel .text_content").height($(".rh-panel .text_content").height() + $(".leftcol").height() - $(".rh-panel").height() - 2);

if ($(".leftcol").height() > $(".maincol").height())
	$(".maincol .text_content .bot").height($(".maincol .text_content").height() + $(".leftcol").height() - $(".maincol").height() - 20);

/* input fields default values checking */

function checkTextValue(obj, val) {
	(obj.value == val) ? obj.value = "" : obj.val = obj.val;
}

/* js */

$(".global_nav > ul > li > ul > li").not(".active").children("a").hover(function() { makeSubItemBold($(this)) }, function() { makeSubItemNormal($(this)) });

/* cufon */

function makeSubItemBold(obj) {
    Cufon.replace(obj, { fontFamily: "HelveticaMedium" });
}

function makeSubItemNormal(obj) {
    Cufon.replace(obj, { fontFamily: "HelveticaLight" });
}

Cufon.replace(".global_nav > ul > li > a, a.panel_visit", { fontFamily: "ArialNarrow" });
Cufon.replace(".global_nav > ul > li > ul > li > a", { fontFamily: "HelveticaLight" });
Cufon.replace(".global_nav > ul > li > ul > li.active > a", { fontFamily: "HelveticaMedium" });
//Cufon.replace(".breadcrumb h1", { fontFamily: "HelveticaBold" });
//Cufon.replace(".breadcrumb h2", { fontFamily: "HelveticaLight" });
Cufon.replace(".rh-panel a.rh", { fontFamily: "HelveticaBold" });