window.onload=function(){

var $j=jQuery.noConflict();
    
$j("#welcometext").hide();
$j("#masks").hide();
$j("#dialog").hide();
$j("#contentarea .catPanelView").hide();
$j("#contentarea .catPanel").hide();
$j("#contentarea .closeButton").hide();
$j("#left .moduletable .mainlevel").css({'color':'orange', 'text-align':'left', 'font-size':'14px'});
//$j("#left .moduletable .sublevel").css({'color':'white', 'text-align':'left', 'font-size':'12px'});
/*
$j("#left .sublevel ").mouseover(function(){

$j("#left .sublevel ").css({'color':'yellow', 'text-align':'left', 'font-size':'12px'});

});
$j("#left .sublevel ").mouseout(function(){

$j("#left .sublevel ").css({'color':'white', 'text-align':'left', 'font-size':'12px'});

});
*/
 
$j("#left .moduletable #active_menu").css({'color':'yellow', 'font-size':'12px'});
$j("#left .moduletable .mainlevel_active").css({'color':'red', 'font-weight':'bold','font-size':'12px'});
$j("#left .moduletable .sublevel_active").css({'color':'red', 'font-weight':'bold', 'font-size':'12px'});

$j("#contentarea .tablesales").css({'background-color':'black', 'color':'yellow', 'font-weight':'bold', 'border':'1px'});
$j("#contentarea #info_body").css({'width' : '100%','height' : 'auto', 'overflow':'auto'});
$j("#contentarea #catPanelView").addClass("optCatName");
$j("#contentarea .catPanel").addClass("optCatPanel");
$j("#contentarea .catPanel .cat_link").css({'font-size':'11px'});
$j("#contentarea .tablesales .row_one").css({'font-size':'11px'});
$j("#contentarea .tablesales .row_null").css({'font-size':'11px'});
$j("#contentarea #headerModul .choice").css({'font-size':'14px', 'background':'black', 'color':'yellow','font-weight':'bold', 'text-decoration':'none','width':'150px'});

$j("#contentarea #headerModul .choice").mouseover(function(){
$j("#contentarea .catPanel").toggle("slow");
$j("#contentarea #info_body").slideUp("slow");
});
$j("#contentarea .cat_link").click(function(){
	$j("#contentarea .catPanel").fadeIn("slow");
	$j("#contentarea .catPanelView").slideDown("slow");
	$j("#contentarea #info_body").slideDown();

});
$j("#contentarea #formView").css({'background':'white', 'width':'100%', 'height':'620px' });
	 
$j(".blog_section").css({'list-style':'none'});
$j("#contentarea .tablesales .linkss").click(function(){
	$j("#contentarea #formView").slideDown("slow");
});

$j(".right #headSales").html("Промоция");
/*$j("#contentarea .#formView  .closeButton").click(function(){
    
$j("#contentarea #formView").hide();

});
*/
/*begin promo*/
$j("#contentarea #textBegin").css({'width':'600px','margin-top':'-20px','background':'black', 'text-decoration':'none','height':'auto','z-index':'5000','color':'yellow','font-size':'12px', 'font-family':'Verdana', 'padding':'5px'});
$j("#contentarea #bannerBegin").css({'z-index':'100', 'height':'300'});
$j("#contentarea #bannerBegin").hide();
$j("#contentarea #textBegin").hide();
$j("#contentarea #bannerBegin ").slideDown("slow");
$j("#contentarea #textBegin").slideDown("slow").html("<span style=\"solid white; width: 200px; height: 15px\">www.eltera.bg </span>:<b> TH7716 Инфрачервена камера - 1бр. - 12 999.00лв  - до изчерпване на количествата<b>");

$j("#contentarea #bannerBegin").mouseover(function(){
$j(this).slideDown("slow").css({'background-image':'url(../images/stories/Nec/7716_rekl.jpg)', 'background-repeat':'no-repeat'});
//$j("#contentarea #textBegin").slideUp("slow").css({'width':'590px','margin-top':'-15px','background':'black', 'text-decoration':'none','height':'auto','z-index':'5000','color':'white','font-size':'0.7em', 'font-family':'Verdana', 'padding':'5px'});
$j("#contentarea #textBegin").slideDown("slow").html("<span style=\"solid white; width: 200px; height: 15px\">www.eltera.bg </span>:<b>TH7716 Инфрачервена камера - Елтера ООД представя ново поколение инфрачервени термокамери.</b>");
 
 });
$j(".news_link").mouseover(function(){
$j(this).slideDown("slow").css({'background-image':'url(../images/stories/Nec/7716_rekl.jpg)', 'background-repeat':'no-repeat'});
//$j("#contentarea #textBegin").slideUp("slow").css({'width':'590px','margin-top':'-15px','background':'black', 'text-decoration':'none','height':'auto','z-index':'5000','color':'white','font-size':'0.7em', 'font-family':'Verdana', 'padding':'5px'});
$j("#contentarea #textBegin").slideDown("slow").html("<span style=\"solid white; width: 200px; height: 15px\">www.eltera.bg </span>:<b>TH7716 Инфрачервена камера - Елтера ООД представя ново поколение инфрачервени термокамери.</b>");
 });
 
$j("#contentarea #bannerBegin").mouseout(function(){
$j(this).slideDown("slow").css({'background-image':'url(../images/stories/Nec/7716_rekl_2.jpg)', 'background-repeat':'no-repeat'});
$j("#contentarea #textBegin").slideDown("slow").html("<span style=\"solid white; width: 200px; height: 15px\">www.eltera.bg </span>:<b>TH7716 - Измерва едновременно визуални и термични изображения и показва насложено изображение за лесно установяване на интересуващата ви област. 3.5\" in LCD дисплей с регулируем наклон, UFPA детектор с микроболометър 160x120px. Лазарен показалец за определяне на измерваната точка. Температурен диапазон -40 °C до 500 °C</b>");
 });
 
/* 
$j("#contentarea #textBegin").mouseover(function(){
$j(this).css({'width':'590px','margin-top':'-15px','background':'black', 'text-decoration':'none','height':'50px','z-index':'5000','color':'yellow','font-size':'0.7em', 'font-family':'Verdana', 'padding':'5px'})
 });
$j("#contentarea #textBegin").mouseout(function(){
$j(this).css({'width':'590px','margin-top':'0px','background':'black', 'text-decoration':'none','height':'50px','z-index':'5000','color':'yellow','font-size':'0.7em', 'font-family':'Verdana', 'padding':'5px'})
 });*/
 
//$j("#dialog").css({'border':'1px', 'border-color':'white'}); 
 
 

$j.ui.dialog.defaults.bgiframe=true;
	var options={};
		$j(function(){
		    $j(".ui-dialog").css({'width':'630'});
			$j("#dialog").dialog({width:640, resizable:false, modal:false, position:['left', 'bottom']});
			$j("div.ui-dialog").effect('bounce', options, 500, '');
			});


$j("#choiceMenu").css({'width':'100%', 'height':'50px', 'padding':'5px'}).hide();
$j("#choiceMenu .limenu").css({'float':'left', 'list-style':'none'});
$j("#choiceMenu .limenu .linkss").css({'color':'white'});
$j("#dialog").mouseover(function(){
	$j("#choiceMenu").slideDown("slow");
});

if($j.browser.msie){
$j("#spacer").css({'height':'70px'});
}else {
$j("#spacer").css({'height':'45px'});
}

$j("#page .searchintro p").prepend('<img src="/images/icons/web_search.png" width="48" height="48" vspace="2" hspace="5" align="middle">');
$j("#page .search_result h3").prepend('<img src="/images/icons/folder_search.png" width="48" height="48" vspace="2" hspace="5" align="middle">');


$j("div#appps").mouseover(function(){
	$j("#appps").css({'cursor':'pointer', 'text-decoration':'underline', 'font-weight':'bold', 'color':'yellow'});
});
$j("div#appps").mouseout(function(){
	$j("#appps").css({'cursor':'pointer', 'text-decoration':'underline', 'font-weight':'bold', 'color':'red'});
});
$j("div#appps").css({'cursor':'pointer', 'text-decoration':'underline', 'font-weight':'bold', 'color':'red'}).click(function(){
	
	$j("div#usesTable").toggle();
});



} 


