function loadXMLDoc(filename,style)
{
	
	$.ajaxSetup ({
		cache: false
	});	
	
	var ajax_load = "<img src='images/load.gif' alt='loading...' />";
	
	//	load() functions
	$('#contentarea').load(filename, function() {
	  
	  // get gettothepoint script
	$("div.portfolio").mouseenter(function() {
		if(!jQuery(this).children().is(":animated") ) {	
		
		var pheight = jQuery(this).height();
		var cheight = jQuery(this).children().height();
		
		// find margin height by taking child height from parent height
		var mTop = pheight-cheight;
		
		jQuery(this).children().animate({
			marginTop: mTop
		}, pheight*2, function() {
			// Animation complete.	
		});
		
		}
	});
	
	$("div.portfolio").mouseleave(function() {
										   
		var pheight = jQuery(this).height();								   
										   
		jQuery(this).children().animate({
			marginTop: "130px"
		}, pheight, function() {
			// Animation complete.
		});
	});
	  
	  if(style=="green_white") {
		
		$(function(){
			
			$("body").css({
				'color' : '#666666',
				'background-color' : '#83B81A',
				'background-image' : 'url(images/green-bg.jpg)'
			});
			
			$(".vgreen").css({
				'color' : '#ffffff'
			});
			
			$(".vlgrey").css({
				'color' : '#2B471C'
			});
			
			$("#identity").css({
				'background-image' : 'url(images/vibe-green.png)'
			});
			
			$("#strapline").css({
				'background-image' : 'url(images/bringing-life-to-brands-green.png)'
			});
			
			$("#contentwrapper").css({
				'background-image' : 'url(images/contentwrapper-bg.jpg)',
				'background-color' : '#ffffff'
			});
			
			$("#footerwrapper").css({
				'background-image' : 'url(images/footerwrapper-bg-green.jpg)'
			});
			
			$("#footer").css({
				'color' : '#4D4D4D'
			});
			
			$("#colgrid3").css({
				'background-image' : 'url(images/3colgrid-bg.gif)'
			});
			
			$("#colgrid2").css({
				'background-color' : ''
			});
		
	    });

	  }
	  
	  if(style=="green") {
		  
		  $(function(){
				
			$("body").css({
				'color' : '#CCCCCC',
				'background-color' : '#83B81A',
				'background-image' : 'url(images/green-bg.jpg)'
			});
			
			$(".vgreen").css({
				'color' : '#ffffff'
			});
			
			$(".vlgrey").css({
				'color' : '#2B471C'
			});
			
			$("#identity").css({
				'background-image' : 'url(images/vibe-green.png)'
			});
			
			$("#strapline").css({
				'background-image' : 'url(images/bringing-life-to-brands-green.png)'
			});
			
			$("#contentwrapper").css({
				'background-image' : 'url(images/contentwrapper-bg-green.jpg)',
				'background-color' : '#333333'
			});
			
			$("#footerwrapper").css({
				'background-image' : 'url(images/footerwrapper-bg-green.jpg)'
			});
			
			$("#footer").css({
				'color' : '#4D4D4D'
			});
			
			$("#colgrid3").css({
				'background-image' : 'url(images/3colgrid-bg-green.gif)'
			});
			
			$("#colgrid2").css({
				'background-color' : ''
			});
			
		
	    });

	}
	
	if(style=="white") {
		
		$(function(){

			$("body").css({
				'color' : '#666666',
				'background-color' : '#f2f2f2',
				'background-image' : 'url(images/white-bg.jpg)'
			});			
			
			$(".vgreen").css({
				'color' : '#83b81a'
			});
			
			$(".vlgrey").css({
				'color' : '#cccccc'
			});
			
			$("#identity").css({
				'background-image' : 'url(images/vibe.png)'
			});
			
			$("#strapline").css({
				'background-image' : 'url(images/bringing-life-to-brands.png)'
			});
			
			$("#contentwrapper").css({
				'background-image' : 'url(images/contentwrapper-bg.jpg)',
				'background-color' : '#ffffff'
			});
			
			$("#footerwrapper").css({
				'background-image' : 'url(images/footerwrapper-bg.jpg)'
			});
			
			$("#footer").css({
				'color' : '#808080'
			});
			
			$("#colgrid3").css({
				'background-image' : 'url(images/3colgrid-bg.gif)'
			});
			
			$("#colgrid2").css({
				'background-color' : ''
			});
			
		
	    });

	}
	
	if(style=="vibe") {
		
		$(function(){

			$("body").css({
				'color' : '#666666',
				'background-color' : '#f2f2f2',
				'background-image' : 'url(images/white-bg.jpg)'
			});			
			
			$(".vgreen").css({
				'color' : '#83b81a'
			});
			
			$(".vlgrey").css({
				'color' : '#cccccc'
			});
			
			$("#identity").css({
				'background-image' : 'url(images/vibe.png)'
			});
			
			$("#strapline").css({
				'background-image' : 'url(images/bringing-life-to-brands.png)'
			});
			
			$("#contentwrapper").css({
				'background-image' : 'url(images/contentwrapper-bg.jpg)',
				'background-color' : '#ffffff'
			});
			
			$("#footerwrapper").css({
				'background-image' : 'url(images/footerwrapper-bg.jpg)'
			});
			
			$("#footer").css({
				'color' : '#808080'
			});
			
			$("#colgrid3").css({
				'background-image' : 'url(images/3colgrid-bg.gif)'
			});
			
			$("#colgrid2").css({
				'background-color' : ''
			});
			
			$("#colgrid2span h2").css({
				'color' : '#D30050'
			});
			
			$("#col3 h2").css({
				'color' : '#D30050'
			});
			
			$("#col3 h1").css({
				'color' : '#D30050'
			});
		
	    });

	}
	
		if(style=="digital") {
		
		$(function(){

			$("body").css({
				'color' : '#666666',
				'background-color' : '#f2f2f2',
				'background-image' : 'url(images/white-bg.jpg)'
			});			
			
			$(".vgreen").css({
				'color' : '#83b81a'
			});
			
			$(".vlgrey").css({
				'color' : '#cccccc'
			});
			
			$("#identity").css({
				'background-image' : 'url(images/vibe.png)'
			});
			
			$("#strapline").css({
				'background-image' : 'url(images/bringing-life-to-brands.png)'
			});
			
			$("#contentwrapper").css({
				'background-image' : 'url(images/contentwrapper-bg.jpg)',
				'background-color' : '#ffffff'
			});
			
			$("#footerwrapper").css({
				'background-image' : 'url(images/footerwrapper-bg.jpg)'
			});
			
			$("#footer").css({
				'color' : '#808080'
			});
			
			$("#colgrid3").css({
				'background-image' : 'url(images/3colgrid-bg.gif)'
			});
			
			$("#colgrid2").css({
				'background-color' : ''
			});
			
			$("#colgrid2 h1").css({
				'color' : '#37A7DA'
			});
			
			$("#colgrid2 h2").css({
				'color' : '#02394F'
			});
			
			$("#colgrid2span h2").css({
				'color' : '#37A7DA'
			});
			
			$("#col3 h2").css({
				'color' : '#02394F'
			});
			
			$("#col3 h1").css({
				'color' : '#37A7DA'
			});
		
	    });

	}
	
	if(style=="black") {
		
		$(function(){
	
			$("body").css({
				'color' : '#666666',
				'background-color' : '#333333',
				'background-image' : 'url(images/black-bg.jpg)'
			});
			
			$(".vgreen").css({
				'color' : '#83b81a'
			});
			
			$(".vlgrey").css({
				'color' : '#cccccc'
			});
			
			$("#identity").css({
				'background-image' : 'url(images/vibe.png)'
			});
			
			$("#strapline").css({
				'background-image' : 'url(images/bringing-life-to-brands.png)'
			});
			
			$("#contentwrapper").css({
				'background-image' : 'url(images/contentwrapper-bg.jpg)',
				'background-color' : '#ffffff'
			});
			
			$("#footerwrapper").css({
				'background-image' : 'url(images/footerwrapper-bg-black.jpg)'
			});
			
			$("#footer").css({
				'color' : '#808080'
			});
			
			$("#colgrid3").css({
				'background-image' : 'url(images/3colgrid-bg.gif)'
			});
			
			$("#colgrid2").css({
				'background-color' : ''
			});
		
	    });

	}
	
		if(style=="team") {
		
		$(function(){
	
			$("body").css({
				'color' : '#666666',
				'background-color' : '#333333',
				'background-image' : 'url(images/black-bg.jpg)'
			});
			
			$(".vgreen").css({
				'color' : '#83b81a'
			});
			
			$(".vlgrey").css({
				'color' : '#cccccc'
			});
			
			$("#identity").css({
				'background-image' : 'url(images/vibe.png)'
			});
			
			$("#strapline").css({
				'background-image' : 'url(images/bringing-life-to-brands.png)'
			});
			
			$("#contentwrapper").css({
				'background-image' : 'url(images/contentwrapper-bg.jpg)',
				'background-color' : '#ffffff'
			});
			
			$("#footerwrapper").css({
				'background-image' : 'url(images/footerwrapper-bg-black.jpg)'
			});
			
			$("#footer").css({
				'color' : '#808080'
			});
			
			$("#colgrid3").css({
				'background-image' : 'url(images/team-colgrid-bg.gif)'
			});
			
			$("#colgrid2").css({
				'background-color' : ''
			});
		
	    });

	}
	
	});
	
}


