var ddsmoothmenu={arrowimages:{down:["downarrowclass","/images/down.gif",23],right:["rightarrowclass","/images/right.gif"]},transition:{overtime:300,outtime:100},shadow:{enabled:false,offsetx:0,offsety:0},detectwebkit:navigator.userAgent.toLowerCase().indexOf("applewebkit")!=-1,detectie6:document.all&&!window.XMLHttpRequest,getajaxmenu:function(c,b){var a=c("#"+b.contentsource[0]);a.html("Loading Menu...");c.ajax({url:b.contentsource[1],async:true,error:function(d){a.html("Error fetching content. Server Response: "+d.responseText)},success:function(d){a.html(d);ddsmoothmenu.buildmenu(c,b)}})},buildmenu:function(d,b){var e=ddsmoothmenu;var a=d("#"+b.mainmenuid+">ul");a.parent().get(0).className=b.classname||"ddsmoothmenu";var c=a.find("ul").parent();c.hover(function(f){d(this).children("a:eq(0)").addClass("selected")},function(f){d(this).children("a:eq(0)").removeClass("selected")});c.each(function(g){var j=d(this).css({zIndex:100-g});var f=d(this).find("ul:eq(0)").css({display:"block"});this._dimensions={w:this.offsetWidth,h:this.offsetHeight,subulw:f.outerWidth(),subulh:f.outerHeight()};this.istopheader=j.parents("ul").length==1?true:false;f.css({top:this.istopheader&&b.orientation!="v"?this._dimensions.h+"px":0});j.children("a:eq(0)").css(this.istopheader?{paddingRight:e.arrowimages.down[2]}:{}).append('<img src="'+(this.istopheader&&b.orientation!="v"?e.arrowimages.down[1]:e.arrowimages.right[1])+'" class="'+(this.istopheader&&b.orientation!="v"?e.arrowimages.down[0]:e.arrowimages.right[0])+'" style="border:0;" />');if(e.shadow.enabled){this._shadowoffset={x:(this.istopheader?f.offset().left+e.shadow.offsetx:this._dimensions.w),y:(this.istopheader?f.offset().top+e.shadow.offsety:j.position().top)};if(this.istopheader){$parentshadow=d(document.body)}else{var h=j.parents("li:eq(0)");$parentshadow=h.get(0).$shadow}this.$shadow=d('<div class="ddshadow'+(this.istopheader?" toplevelshadow":"")+'"></div>').prependTo($parentshadow).css({left:this._shadowoffset.x+"px",top:this._shadowoffset.y+"px"})}j.hover(function(m){var l=d(this).children("ul:eq(0)");this._offsets={left:d(this).offset().left,top:d(this).offset().top};var n=this.istopheader&&b.orientation!="v"?0:this._dimensions.w;n=(this._offsets.left+n+this._dimensions.subulw>d(window).width())?(this.istopheader&&b.orientation!="v"?-this._dimensions.subulw+this._dimensions.w:-this._dimensions.w):n;if(l.queue().length<=1){l.css({left:n+"px",width:this._dimensions.subulw+"px"}).animate({height:"show",opacity:"show"},ddsmoothmenu.transition.overtime);if(e.shadow.enabled){var k=this.istopheader?l.offset().left+ddsmoothmenu.shadow.offsetx:n;var i=this.istopheader?l.offset().top+e.shadow.offsety:this._shadowoffset.y;if(!this.istopheader&&ddsmoothmenu.detectwebkit){this.$shadow.css({opacity:1})}this.$shadow.css({overflow:"",width:this._dimensions.subulw+"px",left:k+"px",top:i+"px"}).animate({height:this._dimensions.subulh+"px"},ddsmoothmenu.transition.overtime)}}},function(k){var i=d(this).children("ul:eq(0)");i.animate({height:"hide",opacity:"hide"},ddsmoothmenu.transition.outtime);if(e.shadow.enabled){if(ddsmoothmenu.detectwebkit){this.$shadow.children("div:eq(0)").css({opacity:0})}this.$shadow.css({overflow:"hidden"}).animate({height:0},ddsmoothmenu.transition.outtime)}})});a.find("ul").css({display:"none",visibility:"visible"})},init:function(c){if(typeof c.customtheme=="object"&&c.customtheme.length==2){var b="#"+c.mainmenuid;var a=(c.orientation=="v")?b:b+", "+b;document.write('<style type="text/css">\n'+a+" ul li a {background:"+c.customtheme[0]+";}\n"+b+" ul li a:hover {background:"+c.customtheme[1]+";}\n</style>")}this.shadow.enabled=(document.all&&!window.XMLHttpRequest)?false:true;jQuery(document).ready(function(d){if(typeof c.contentsource=="object"){ddsmoothmenu.getajaxmenu(d,c)}else{ddsmoothmenu.buildmenu(d,c)}})}};var niftyOk=(document.getElementById&&document.createElement&&Array.prototype.push);var niftyCss=false;String.prototype.find=function(a){return(this.indexOf(a)>=0?true:false)};function AddCss(){niftyCss=true;var a=CreateEl("link");a.setAttribute("type","text/css");a.setAttribute("rel","stylesheet");a.setAttribute("href","/niftyCorners.css");a.setAttribute("media","screen");document.getElementsByTagName("head")[0].appendChild(a)}function Nifty(a,c){if(niftyOk==false){return}if(niftyCss==false){AddCss()}var d,b=a.split(","),e=0;if(c==null){c=""}if(c.find("fixed-height")){e=getElementsBySelector(b[0])[0].offsetHeight}for(d=0;d<b.length;d++){Rounded(b[d],c)}if(c.find("height")){SameHeight(a,e)}}function Rounded(a,d){var e,f="",c="",b=new Array();if(d!=""){d=d.replace("left","tl bl");d=d.replace("right","tr br");d=d.replace("top","tr tl");d=d.replace("bottom","br bl");d=d.replace("transparent","alias");if(d.find("tl")){f="both";if(!d.find("tr")){f="left"}}else{if(d.find("tr")){f="right"}}if(d.find("bl")){c="both";if(!d.find("br")){c="left"}}else{if(d.find("br")){c="right"}}}if(f==""&&c==""&&!d.find("none")){f="both";c="both"}b=getElementsBySelector(a);for(e=0;e<b.length;e++){FixIE(b[e]);if(f!=""){AddTop(b[e],f,d)}if(c!=""){AddBottom(b[e],c,d)}}}function AddTop(c,l,m){var k=CreateEl("b"),e=4,h="",a,j,b="r",f,g;k.style.marginLeft="-"+getPadding(c,"Left")+"px";k.style.marginRight="-"+getPadding(c,"Right")+"px";if(m.find("alias")||(g=getBk(c))=="transparent"){g="transparent";f="transparent";h=getParentBk(c);b="t"}else{f=getParentBk(c);h=Mix(g,f)}k.style.background=f;k.className="niftycorners";a=getPadding(c,"Top");if(m.find("small")){k.style.marginBottom=(a-2)+"px";b+="s";e=2}else{if(m.find("big")){k.style.marginBottom=(a-10)+"px";b+="b";e=8}else{if(m.find("ext")){k.style.marginBottom=(a-20)+"px";b+="e";e=13}else{k.style.marginBottom=(a-5)+"px"}}}for(j=1;j<=e;j++){k.appendChild(CreateStrip(j,l,g,h,b))}c.style.paddingTop="0";c.insertBefore(k,c.firstChild)}function AddBottom(c,l,m){var k=CreateEl("b"),e=4,h="",a,j,b="r",f,g;k.style.marginLeft="-"+getPadding(c,"Left")+"px";k.style.marginRight="-"+getPadding(c,"Right")+"px";if(m.find("alias")||(g=getBk(c))=="transparent"){g="transparent";f="transparent";h=getParentBk(c);b="t"}else{f=getParentBk(c);h=Mix(g,f)}k.style.background=f;k.className="niftycorners";a=getPadding(c,"Bottom");if(m.find("small")){k.style.marginTop=(a-2)+"px";b+="s";e=2}else{if(m.find("big")){k.style.marginTop=(a-10)+"px";b+="b";e=8}else{if(m.find("ext")){k.style.marginTop=(a-20)+"px";b+="e";e=13}else{k.style.marginTop=(a-5)+"px"}}}for(j=e;j>0;j--){k.appendChild(CreateStrip(j,l,g,h,b))}c.style.paddingBottom=0;c.appendChild(k)}function CreateStrip(d,e,b,c,f){var a=CreateEl("b");a.className=f+d;a.style.backgroundColor=b;a.style.borderColor=c;if(e=="left"){a.style.borderRightWidth="0";a.style.marginRight="0"}else{if(e=="right"){a.style.borderLeftWidth="0";a.style.marginLeft="0"}}return(a)}function CreateEl(a){return(document.createElement(a))}function FixIE(a){if(a.currentStyle!=null&&a.currentStyle.hasLayout!=null&&a.currentStyle.hasLayout==false){a.style.display="inline-block"}}function SameHeight(a,d){var g,b=a.split(","),f,c,e=[],h;for(g=0;g<b.length;g++){f=getElementsBySelector(b[g]);e=e.concat(f)}for(g=0;g<e.length;g++){if(e[g].offsetHeight>d){d=e[g].offsetHeight}e[g].style.height="auto"}for(g=0;g<e.length;g++){h=d-e[g].offsetHeight;if(h>0){f=CreateEl("b");f.className="niftyfill";f.style.height=h+"px";nc=e[g].lastChild;if(nc.className=="niftycorners"){e[g].insertBefore(f,nc)}else{e[g].appendChild(f)}}}}function getElementsBySelector(d){var h,g,b="",n="",x=d,t="",r,e,m,q,w=[],p=[],o;if(d.find("#")){if(d.find(" ")){w=d.split(" ");var l=w[0].split("#");if(l.length==1){return(p)}m=document.getElementById(l[1]);if(m){u=m.getElementsByTagName(w[1]);for(h=0;h<u.length;h++){p.push(u[h])}}return(p)}else{w=d.split("#");x=w[0];b=w[1];if(b!=""){m=document.getElementById(b);if(m){p.push(m)}return(p)}}}if(d.find(".")){w=d.split(".");x=w[0];n=w[1];if(n.find(" ")){w=n.split(" ");n=w[0];t=w[1]}}var u=document.getElementsByTagName(x);if(n==""){for(h=0;h<u.length;h++){p.push(u[h])}return(p)}for(h=0;h<u.length;h++){o=u[h].className.split(" ");for(g=0;g<o.length;g++){if(o[g]==n){if(t==""){p.push(u[h])}else{r=u[h].getElementsByTagName(t);for(e=0;e<r.length;e++){p.push(r[e])}}}}}return(p)}function getParentBk(a){var b=a.parentNode,d;while(b.tagName.toUpperCase()!="HTML"&&(d=getBk(b))=="transparent"){b=b.parentNode}if(d=="transparent"){d="#FFFFFF"}return(d)}function getBk(a){var b=getStyleProp(a,"backgroundColor");if(b==null||b=="transparent"||b.find("rgba(0, 0, 0, 0)")){return("transparent")}if(b.find("rgb")){b=rgb2hex(b)}return(b)}function getPadding(a,b){var c=getStyleProp(a,"padding"+b);if(c==null||!c.find("px")){return(0)}return(parseInt(c))}function getStyleProp(a,b){if(a.currentStyle){return(a.currentStyle[b])}if(document.defaultView.getComputedStyle){return(document.defaultView.getComputedStyle(a,"")[b])}return(null)}function rgb2hex(f){var d="",a,c,b;var e=/([0-9]+)[, ]+([0-9]+)[, ]+([0-9]+)/;var c=e.exec(f);for(b=1;b<4;b++){a=parseInt(c[b]).toString(16);if(a.length==1){d+="0"+a}else{d+=a}}return("#"+d)}function Mix(f,e){var d,c,b,a,h,g=new Array(3);if(f.length==4){c=1}else{c=2}if(e.length==4){b=1}else{b=2}for(d=0;d<3;d++){a=parseInt(f.substr(1+c*d,c),16);if(c==1){a=16*a+a}h=parseInt(e.substr(1+b*d,b),16);if(b==1){h=16*h+h}g[d]=Math.floor((a*50+h*50)/100);g[d]=g[d].toString(16);if(g[d].length==1){g[d]="0"+g[d]}}return("#"+g[0]+g[1]+g[2])}var fadeSlideShow_descpanel={controls:[["/images/x.png",7,7],["/images/restore.png",10,11],["/images/loading.gif",54,55]],fontStyle:"normal 11px Verdana",slidespeed:200};jQuery=$;function fadeSlideShow(e){this.setting=e;e=null;var d=this.setting;d.fadeduration=d.fadeduration?parseInt(d.fadeduration):500;d.curimage=(d.persist)?fadeSlideShow.routines.getCookie("gallery-"+d.wrapperid):0;d.curimage=d.curimage||0;d.currentstep=0;d.totalsteps=d.imagearray.length*(d.displaymode.cycles>0?d.displaymode.cycles:Infinity);d.fglayer=0,d.bglayer=1;d.oninit=d.oninit||function(){};d.onslide=d.onslide||function(){};if(d.displaymode.randomize){d.imagearray.sort(function(){return 0.5-Math.random()})}var a=[];d.longestdesc="";for(var c=0;c<d.imagearray.length;c++){a[c]=new Image();a[c].src=d.imagearray[c][0];if(d.imagearray[c][3]&&d.imagearray[c][3].length>d.longestdesc.length){d.longestdesc=d.imagearray[c][3]}}var f=fadeSlideShow_descpanel.controls[0];d.closebutton=(d.descreveal=="always")?'<img class="close" src="'+f[0]+'" style="float:right;cursor:hand;cursor:pointer;width:'+f[1]+"px;height:"+f[2]+'px;margin-left:2px" title="Hide Description" />':"";var b=this;jQuery(document).ready(function(j){var i=b.setting;var h=fadeSlideShow.routines.getFullHTML(i.imagearray);i.$wrapperdiv=j("#"+i.wrapperid).css({position:"relative",visibility:"visible",background:"white",overflow:"hidden",width:i.dimensions[0],height:i.dimensions[1]}).empty();if(i.$wrapperdiv.length==0){alert('Error: DIV with ID "'+i.wrapperid+'" not found on page.');return}i.$gallerylayers=j('<div class="gallerylayer"></div><div class="gallerylayer"></div>').css({position:"absolute",left:0,top:0,width:"100%",height:"100%",background:"white"}).appendTo(i.$wrapperdiv);var g=j('<img src="'+fadeSlideShow_descpanel.controls[2][0]+'" style="position:absolute;width:'+fadeSlideShow_descpanel.controls[2][1]+";height:"+fadeSlideShow_descpanel.controls[2][2]+'" />').css({left:i.dimensions[0]/2-fadeSlideShow_descpanel.controls[2][1]/2,top:i.dimensions[1]/2-fadeSlideShow_descpanel.controls[2][2]}).appendTo(i.$wrapperdiv);var k=i.$gallerylayers.html(h).find("img").hide().eq(i.curimage);if(i.longestdesc!=""){fadeSlideShow.routines.adddescpanel(j,i);if(i.descreveal=="always"){i.$descpanel.css({top:i.dimensions[1]-i.panelheight});i.$descinner.click(function(l){if(l.target.className=="close"){b.showhidedescpanel("hide")}});i.$restorebutton.click(function(l){b.showhidedescpanel("show");j(this).css({visibility:"hidden"})})}else{i.$wrapperdiv.bind("mouseenter",function(){b.showhidedescpanel("show")});i.$wrapperdiv.bind("mouseleave",function(){b.showhidedescpanel("hide")})}}i.$wrapperdiv.bind("mouseenter",function(){i.ismouseover=true});i.$wrapperdiv.bind("mouseleave",function(){i.ismouseover=false});if(k.get(0).complete){g.hide();b.paginateinit(j);b.showslide(i.curimage)}else{g.hide();b.paginateinit(j);k.bind("load",function(){b.showslide(i.curimage)})}i.oninit.call(b);j(window).bind("unload",function(){if(b.setting.persist){fadeSlideShow.routines.setCookie("gallery-"+i.wrapperid,i.curimage)}jQuery.each(b.setting,function(l){if(b.setting[l] instanceof Array){for(var m=0;m<b.setting[l].length;m++){if(b.setting[l][m].tagName=="DIV"){b.setting[l][m].innerHTML=null}b.setting[l][m]=null}}});b=b.setting=null})})}fadeSlideShow.prototype={navigate:function(a){var b=this.setting;clearTimeout(b.playtimer);if(b.displaymode.type=="auto"){b.displaymode.type="manual";b.displaymode.wraparound=true}if(!isNaN(parseInt(a))){this.showslide(parseInt(a))}else{if(/(prev)|(next)/i.test(a)){this.showslide(a.toLowerCase())}}},showslide:function(a){var b=this;var e=b.setting;if(e.displaymode.type=="auto"&&e.ismouseover&&e.currentstep<=e.totalsteps){e.playtimer=setTimeout(function(){b.showslide("next")},e.displaymode.pause);return}var d=e.imagearray.length;var c=(a=="next")?(e.curimage<d-1?e.curimage+1:0):(a=="prev")?(e.curimage>0?e.curimage-1:d-1):Math.min(a,d-1);var f=e.$gallerylayers.eq(e.bglayer).find("img").hide().eq(c).show();var g=[f.width(),f.height()];f.css({marginLeft:(g[0]>0&&g[0]<e.dimensions[0])?e.dimensions[0]/2-g[0]/2:0});f.css({marginTop:(g[1]>0&&g[1]<e.dimensions[1])?e.dimensions[1]/2-g[1]/2:0});e.$gallerylayers.eq(e.bglayer).css({zIndex:100,opacity:0}).stop().css({opacity:0}).animate({opacity:1},e.fadeduration,function(){clearTimeout(e.playtimer);try{e.onslide.call(b,e.$gallerylayers.eq(e.fglayer).get(0),e.curimage)}catch(h){alert('Fade In Slideshow error: An error has occured somwhere in your code attached to the "onslide" event: '+h)}e.currentstep+=1;if(e.displaymode.type=="auto"){if(e.currentstep<=e.totalsteps||e.displaymode.cycles==0){e.playtimer=setTimeout(function(){b.showslide("next")},e.displaymode.pause)}}});e.$gallerylayers.eq(e.fglayer).css({zIndex:99});e.fglayer=e.bglayer;e.bglayer=(e.bglayer==0)?1:0;e.curimage=c;if(e.$descpanel){e.$descpanel.css({visibility:(e.imagearray[c][3])?"visible":"hidden"})}if(e.imagearray[c][3]){e.$descinner.empty().html(e.closebutton+e.imagearray[c][3])}if(e.displaymode.type=="manual"&&!e.displaymode.wraparound){this.paginatecontrol()}if(e.$status){e.$status.html(e.curimage+1+"/"+d)}},showhidedescpanel:function(c,a){var b=this.setting;var d=(c=="show")?b.dimensions[1]-b.panelheight:this.setting.dimensions[1];b.$descpanel.stop().animate({top:d},fadeSlideShow_descpanel.slidespeed,function(){if(b.descreveal=="always"&&c=="hide"){b.$restorebutton.css({visibility:"visible"})}})},paginateinit:function(c){var a=this;var b=this.setting;if(b.togglerid){b.$togglerdiv=c("#"+b.togglerid);b.$prev=b.$togglerdiv.find(".prev").data("action","prev");b.$next=b.$togglerdiv.find(".next").data("action","next");b.$prev.add(b.$next).click(function(f){var d=c(this);a.navigate(d.data("action"));f.preventDefault()});b.$status=b.$togglerdiv.find(".status")}},paginatecontrol:function(){var a=this.setting;a.$prev.css({opacity:(a.curimage==0)?0.4:1}).data("action",(a.curimage==0)?"none":"prev");a.$next.css({opacity:(a.curimage==a.imagearray.length-1)?0.4:1}).data("action",(a.curimage==a.imagearray.length-1)?"none":"next");if(document.documentMode==8){a.$prev.find("img:eq(0)").css({opacity:(a.curimage==0)?0.4:1});a.$next.find("img:eq(0)").css({opacity:(a.curimage==a.imagearray.length-1)?0.4:1})}}};fadeSlideShow.routines={getSlideHTML:function(b){var a=(b[1])?'<a href="'+b[1]+'" target="'+b[2]+'">\n':"";a+='<img src="'+b[0]+'" style="border-width:0;" />\n';a+=(b[1])?"</a>\n":"";return a},getFullHTML:function(b){var a="";for(var c=0;c<b.length;c++){a+=this.getSlideHTML(b[c])}return a},adddescpanel:function(b,a){a.$descpanel=b('<div class="fadeslidedescdiv"></div>').css({position:"absolute",visibility:"hidden",width:"100%",left:0,top:a.dimensions[1],font:fadeSlideShow_descpanel.fontStyle,zIndex:"101"}).appendTo(a.$wrapperdiv);b('<div class="descpanelbg"></div><div class="descpanelfg"></div>').css({position:"absolute",left:0,top:0,width:a.$descpanel.width()-8,padding:"4px"}).eq(0).css({background:"black",opacity:0.7}).end().eq(1).css({color:"white"}).html(a.closebutton+a.longestdesc).end().appendTo(a.$descpanel);a.$descinner=a.$descpanel.find("div.descpanelfg");a.panelheight=a.$descinner.outerHeight();a.$descpanel.css({height:a.panelheight}).find("div").css({height:"100%"});if(a.descreveal=="always"){a.$restorebutton=b('<img class="restore" title="Restore Description" src="'+fadeSlideShow_descpanel.controls[1][0]+'" style="position:absolute;visibility:hidden;right:0;bottom:0;z-index:1002;width:'+fadeSlideShow_descpanel.controls[1][1]+"px;height:"+fadeSlideShow_descpanel.controls[1][2]+'px;cursor:pointer;cursor:hand" />').appendTo(a.$wrapperdiv)}},getCookie:function(a){var b=new RegExp(a+"=[^;]+","i");if(document.cookie.match(b)){return document.cookie.match(b)[0].split("=")[1]}return null},setCookie:function(a,b){document.cookie=a+"="+b+";path=/"}};ddsmoothmenu.init({mainmenuid:"menuleft",orientation:"v",classname:"ddsmoothmenu-v",contentsource:"markup"});NiftyLoad=function(){Nifty("div.article","ext transparent top bottom");Nifty("div.infopage","ext transparent top bottom");Nifty("div.category","ext transparent top bottom");Nifty("div.links","ext transparent top bottom");Nifty("div.resources","ext transparent top bottom");Nifty("div.relatednav a","big transparent top");Nifty("div.relatedtext","big transparent");Nifty("td.headernew","ext transparent top bottom");if(maspcode=="home"){Nifty("div.featuredcategory","ext transparent top bottom same-height");Nifty("div.latestarticles","ext transparent top bottom");Nifty("div.featuredarticles","ext transparent top bottom");Nifty("div.news-no-flash","ext transparent top bottom");Nifty("div.signup","ext transparent top bottom")}};var flashvars=false;var params={wmode:"transparent",scale:"noscale",salign:"tl"};var attributes=false;var mygallery=new fadeSlideShow({wrapperid:"fadeshow1",dimensions:[580,90],imagearray:headerImages,displaymode:{type:"auto",pause:4000,cycles:0,wraparound:true,randomize:true},persist:false,fadeduration:500,descreveal:"ondemand",togglerid:"fadeshow1toggler"});var _gaq=_gaq||[];_gaq.push(["_setAccount","UA-12793429-1"]);_gaq.push(["_trackPageview"]);$(document).ready(function(){$.getScript(("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js")});var addthis_pub="dilesh";var addthis_brand="Masti Design";