var $jq = jQuery.noConflict();
$jq(document).ready(function(){
// CSS overrides. Needed for VM CSS defined prior to loading stylesheets
$jq("#rssfeed").css("float","right");
$jq(".sublevel").css('color','#000000');
$jq("#active_menu").css('font-family','Verdana');
$jq("#active_menu").css('font-size','11px');
$jq("#active_menu").css('padding','3px');
$jq("#active_menu").css('background-color','#7CB200');
$jq(".mainlevel").css('color','#ffffff');
// Portfolio menu-items
$jq(".sublevel").hover(function(){
	$jq(this).css ("background-color","#ffffff");
},function(){
	$jq(this).css ("background-color","#7CB200");
});
// Mainmenu menu-items
$jq(".main a").hover(function(){
	$jq(this).css ("text-decoration","underline");
},function(){
	$jq(this).css ("text-decoration","none");
});
$jq(".vmsubcategories a").hover(function(){
	$jq(this).css ("text-decoration","underline");$jq(this).css ("color","#000000");
},function(){
	$jq(this).css ("text-decoration","none");$jq(this).css ("color","#606060");
});





$jq(".rssswap").click(function(){
window.location.href = ("http://www.4k.be/container/index.php/News/feed/rss.xhtml");});
$jq(".facebook").click(function(){
window.location.href = ("https://www.facebook.com/login.php?api_key=127760087237610&skip_api_login=1&display=popup&nux=1&referer=http%3A%2F%2Fwww.4k.be%2Fcontainer%2Findex.php%2Fthinklogical-multi-video-chassis.xhtml&social_plugin=like&locale=en_GB&external_page_url=http%3A%2F%2Fwww.4k.be%2Fcontainer%2Findex.php%3Foption%3Dcom_content%26catid%3D1%26id%3D80%26lang%3Den%26view%3Darticle&next=http%3A%2F%2Fwww.facebook.com%2Fconnect%2Fuiserver.php%3Fmethod%3Dopt.inlike%26app_id%3D127760087237610%26display%3Dpopup%26nux%3D1%26referer%3Dhttp%253A%252F%252Fwww.4k.be%252Fcontainer%252Findex.php%252Fthinklogical-multi-video-chassis.xhtml%26social_plugin%3Dlike%26secure%3Dfalse%26locale%3Den_GB%26protocol%3Dhttp%253A%26external_page_url%3Dhttp%253A%252F%252Fwww.4k.be%252Fcontainer%252Findex.php%253Foption%253Dcom_content%2526catid%253D1%2526id%253D80%2526lang%253Den%2526view%253Darticle%26from_login%3D1&rcount=1");});
$jq(".rssswap").hover(function(){
this.src="http://www.4k.be/container/templates/htdocs2/img/feed_hover.png";
},function(){ 
this.src="http://www.4k.be/container/templates/htdocs2/img/feed.png";});


$jq(".facebook").hover(function(){
this.src="http://www.4k.be/container/templates/htdocs2/img/facebook_up.png";
},function(){ 
this.src="http://www.4k.be/container/templates/htdocs2/img/facebook.png";});
$jq(".lightBox").click(function(){
$jq("#pageblind").fadeTo("slow",0.85);
var obWidth = parseInt(($jq(this).attr("obWidth")));
var obHeight = parseInt(($jq(this).attr("obHeight")));
$jq("#lightbox").css("width",obWidth+"px");
$jq("#lightbox").css("height",(obHeight+20)+"px");
var vpwidth = $jq(window).width();
var vpheight = $jq(window).height();
var divwidth = $jq("#lightbox").width();
var divheight = $jq("#lightbox").height();
var toppos = (vpheight/2)-(divheight/2);
var leftpos = (vpwidth/2)-(divwidth/2);
$jq("#lightbox").css("left",leftpos);
$jq("#lightbox").css("top",toppos);
$jq("#lightbox").fadeIn("slow");
var obType = ($jq(this).attr("obType"));
var obSource = ($jq(this).attr("obSource"));
if (obType == "video"){
$jq("#lightbox").append("<object width='"+obWidth+"' height='"+obHeight+"'><param name='movie' value='"+obSource+"'></param><param name='allowFullScreen' value='true'></param><param name='allowscriptaccess' value='always'></param><embed src='"+obSource+"' type='application/x-shockwave-flash' allowscriptaccess='always' allowfullscreen='false' width='"+obWidth+"' height='"+obHeight+"'></embed></object>");
$jq("#lightbox").css("border","none");};
if (obType == "image"){
$jq("#lightbox").append("<img width='"+obWidth+"' height='"+obHeight+"' src='"+obSource+"'/>");};});
$jq("#pageblind").click(function(){
$jq(this).fadeOut("slow");
$jq("#lightbox").fadeOut("slow");
$jq("#lightbox").empty();
$jq("#pageblind").empty();
});



});


        


